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 bf21ca072d5250b1196e62db61f3ba675ee89b52.
This commit is contained in:
parent
40eb257d0d
commit
63a05d72d9
@ -18,7 +18,12 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
[[v2.7]]
|
||||
== Version 2.7 (under dev)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* buflist: fix extra spaces between buffers when conditions are used to hide buffers (regression introduced in version 2.6) (issue #1403)
|
||||
|
||||
Build::
|
||||
|
||||
* core: remove file FindTCL.cmake
|
||||
* core: display an error on missing dependency in CMake (issue #916, issue #956)
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user