1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

buflist: fix extra spaces between buffers when conditions are used to hide buffers (closes #1403)

This is a regression introduced in version 2.6 by commit
bf21ca072d.
This commit is contained in:
Sébastien Helleu
2019-09-17 21:21:28 +02:00
parent 40eb257d0d
commit 63a05d72d9
2 changed files with 13 additions and 7 deletions
+8 -7
View File
@@ -359,13 +359,6 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
ptr_buffer, "name");
}
if (weechat_config_boolean (buflist_config_look_add_newline)
&& *buflist[0])
{
if (!weechat_string_dyn_concat (buflist, "\n"))
goto error;
}
/* current buffer */
current_buffer = (ptr_buffer == ptr_current_buffer);
weechat_hashtable_set (buflist_hashtable_extra_vars,
@@ -588,6 +581,14 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
line_number_current_buffer = line_number;
prev_number = number;
/* add newline between each buffer (if needed) */
if (weechat_config_boolean (buflist_config_look_add_newline)
&& *buflist[0])
{
if (!weechat_string_dyn_concat (buflist, "\n"))
goto error;
}
/* build string */
line = weechat_string_eval_expression (
(current_buffer) ? ptr_format_current : ptr_format,