aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index d642cde..5afd49c 100644
--- a/degesch.c
+++ b/degesch.c
@@ -1016,7 +1016,8 @@ input_el__restore_buffer (struct input_el *self, struct input_el_buffer *buffer)
el_winsertstr (self->editline, buffer->saved_line);
el_cursor (self->editline,
-(buffer->saved_len - buffer->saved_point));
- cstr_set (&buffer->saved_line, NULL);
+ free (buffer->saved_line);
+ buffer->saved_line = NULL;
}
}