aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}