From 1e2a8c4682a7e70f7d17ff0f64669ec25870119f Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 10 May 2020 01:49:15 +0200 Subject: [PATCH] core: Don't collapse consecutive newlines in bar content This allows blank lines to be displayed in the input bar when you input multiple consecutive newlines. Relates to #1498 --- src/gui/curses/gui-curses-bar-window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index ca5182a42..2204a8755 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -489,8 +489,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, items = string_split (content, "\n", NULL, WEECHAT_STRING_SPLIT_STRIP_LEFT - | WEECHAT_STRING_SPLIT_STRIP_RIGHT - | WEECHAT_STRING_SPLIT_COLLAPSE_SEPS, + | WEECHAT_STRING_SPLIT_STRIP_RIGHT, 0, &items_count); if (items_count == 0) {