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
This commit is contained in:
Trygve Aaberge 2020-05-10 01:49:15 +02:00 committed by Sébastien Helleu
parent 867e07aa18
commit 1e2a8c4682

View File

@ -489,8 +489,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
items = string_split (content, "\n", NULL, items = string_split (content, "\n", NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT | WEECHAT_STRING_SPLIT_STRIP_RIGHT,
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0, &items_count); 0, &items_count);
if (items_count == 0) if (items_count == 0)
{ {