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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user