summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 1808de2..f2d5b4e 100644
--- a/degesch.c
+++ b/degesch.c
@@ -1151,6 +1151,7 @@ buffer_activate (struct app_context *ctx, struct buffer *buffer)
rl_point = buffer->saved_point;
rl_mark = buffer->saved_mark;
free (buffer->saved_line);
+ buffer->saved_line = 0;
if (ctx->readline_prompt_shown)
rl_redisplay ();