mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02: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:
parent
f3ab905f7e
commit
662c4d30ab
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue