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:
parent
867e07aa18
commit
1e2a8c4682
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user