From e276fe0022be96ccea45588f82663159ca6aa20c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 21 Jun 2015 23:21:13 +0200
Subject: degesch: fix /query
It changed the buffer, which saved the state, which saved the line
currently being processed (thanks Readline, so obvious).
---
degesch.c | 2 ++
1 file changed, 2 insertions(+)
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);
}
--
cgit v1.2.3-70-g09d2