From c8c1697e20675a53c0b570b8cddd6eecb1a846b4 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 22 Jun 2015 21:39:24 +0200
Subject: degesch: final fix for /query
rl_delete_text() didn't fix rl_point.
---
degesch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/degesch.c b/degesch.c
index f9c6288..b065390 100644
--- a/degesch.c
+++ b/degesch.c
@@ -7642,7 +7642,7 @@ on_readline_input (char *line)
add_history (line);
// The text is deleted _afterwards_
- rl_delete_text (0, rl_end);
+ rl_replace_line ("", false);
process_input (ctx, line);
free (line);
}
--
cgit v1.2.3-70-g09d2