summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-21 23:21:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-21 23:38:22 +0200
commite276fe0022be96ccea45588f82663159ca6aa20c (patch)
tree717c0386fe9fce6943d5bc6c45c729eb1baef8f9 /degesch.c
parent1e04fc24a7b2b23a9913011c92629c47e58a6735 (diff)
downloadxK-e276fe0022be96ccea45588f82663159ca6aa20c.tar.gz
xK-e276fe0022be96ccea45588f82663159ca6aa20c.tar.xz
xK-e276fe0022be96ccea45588f82663159ca6aa20c.zip
degesch: fix /query
It changed the buffer, which saved the state, which saved the line currently being processed (thanks Readline, so obvious).
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 5268777..b75a1f0 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7626,6 +7626,8 @@ on_readline_input (char *line)
if (*line)
add_history (line);
+ // The text is deleted _afterwards_
+ rl_delete_text (0, rl_end);
process_input (ctx, line);
free (line);
}