1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

add space between merged lines

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3217 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-01-24 22:08:56 +00:00 committed by cras
parent f3ab905f7e
commit 662c4d30ab

View File

@ -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;