summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/editor.c b/src/editor.c
index 3965464..6aea958 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -487,6 +487,7 @@ editor_enter (rp_input_line *line)
else /* result == 0 || result == 1 */
{
history_add (expansion);
+ free (line->buffer);
line->buffer = expansion;
}
#endif /* HAVE_HISTORY */