From 662c4d30ab29c6ceca2f2ffa1774c2212157e924 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 24 Jan 2004 22:08:56 +0000 Subject: add space between merged lines git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3217 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-readline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fe-text') diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 8a8b971d..c48634fa 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -227,9 +227,10 @@ static void paste_buffer_join_lines(GArray *buf) /* whitespace, ignore */ } else if (arr[i] == '\n') { if (!last_lf && i+1 != buf->len && - IS_WHITE(arr[i+1])) + IS_WHITE(arr[i+1])) { last_lf_pos = dest; - else { + *dest++ = ' '; + } else { *dest++ = '\n'; /* double-LF */ line_len = 0; last_lf_pos = NULL; -- cgit v1.2.3