From 1c269e9a81d3755e494b74d05beb2d1baff2f8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 10 May 2020 10:29:01 +0200 Subject: [PATCH] core: don't collapse consecutive newlines in lines displayed before the first buffer is created --- ChangeLog.adoc | 1 + 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++)