summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-01-24 22:08:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-01-24 22:08:56 +0000
commit662c4d30ab29c6ceca2f2ffa1774c2212157e924 (patch)
treeb679e1328d53e287d8cb5d080ec1471e2d2e77e2 /src
parentf3ab905f7eef0dbde53bc0682846b3e9912a8a55 (diff)
downloadirssi-662c4d30ab29c6ceca2f2ffa1774c2212157e924.zip
add space between merged lines
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3217 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/gui-readline.c5
1 files changed, 3 insertions, 2 deletions
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;