summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 4b4ee96b..f72fc19b 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -241,6 +241,7 @@ static void paste_buffer_join_lines(GArray *buf)
memmove(last_lf_pos+1, last_lf_pos,
dest - last_lf_pos);
*last_lf_pos = '\n'; last_lf_pos = NULL;
+ line_len = 0;
dest++;
}
*dest++ = arr[i];