aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-22 21:39:24 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-22 23:07:09 +0200
commitc8c1697e20675a53c0b570b8cddd6eecb1a846b4 (patch)
tree3e2434c3ad535a99c1028e6b70dfe7b9cacc2b8d
parentde019e7832cbd66b2fdbc16caf243e6fd929e40a (diff)
downloadxK-c8c1697e20675a53c0b570b8cddd6eecb1a846b4.tar.gz
xK-c8c1697e20675a53c0b570b8cddd6eecb1a846b4.tar.xz
xK-c8c1697e20675a53c0b570b8cddd6eecb1a846b4.zip
degesch: final fix for /query
rl_delete_text() didn't fix rl_point.
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
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);
}