1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

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
+1 -2
View File
@@ -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)
{