diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-10 10:29:01 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-10 10:29:01 +0200 |
commit | 1c269e9a81d3755e494b74d05beb2d1baff2f8e5 (patch) | |
tree | 6b4563a4493b5dcd706dd139a2c3f86e92b34559 | |
parent | 8712e557d6df46030b177c612a06823db23ddb31 (diff) | |
download | weechat-1c269e9a81d3755e494b74d05beb2d1baff2f8e5.zip |
core: don't collapse consecutive newlines in lines displayed before the first buffer is created
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/gui/gui-chat.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 76b1c5035..dfd118649 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -41,6 +41,7 @@ New features:: Bug fixes:: + * core: don't collapse consecutive newlines in lines displayed before the first buffer is created * core: don't remove consecutive newlines when pasting text (issue #1500) * core: don't collapse consecutive newlines in bar content (issue #1500) * core: fix WEECHAT_SHAREDIR with CMake build (issue #1461) diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index e68761d19..f70e9bb50 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -929,10 +929,7 @@ gui_chat_print_lines_waiting_buffer (FILE *f) if (gui_chat_lines_waiting_buffer) { lines = string_split (*gui_chat_lines_waiting_buffer, "\n", NULL, - WEECHAT_STRING_SPLIT_STRIP_LEFT - | WEECHAT_STRING_SPLIT_STRIP_RIGHT - | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, - 0, &num_lines); + 0, 0, &num_lines); if (lines) { for (i = 0; i < num_lines; i++) |