buflist: add "window" pointer in bar item evaluation only if it's not NULL (if bar type is "window")

This commit is contained in:
Sébastien Helleu 2020-06-10 20:39:07 +02:00
parent fad07d1ff2
commit 99a324b76f
2 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ Bug fixes::
* core: fix resize of a bar when its size is 0 (automatic) (issue #1470)
* api: fix use of pointer after free in function key_unbind
* api: replace plugin and buffer name by buffer pointer in argument "modifier_data" sent to weechat_print modifier callback (issue #42)
* buflist: add "window" pointer in bar item evaluation only if it's not NULL (if bar type is "window")
* exec: fix use of same task id for different tasks (issue #1491)
* fifo: fix errors when writing in the FIFO pipe (issue #713)
* guile: enable again /guile eval (issue #1514)

View File

@ -327,7 +327,8 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
item_index = (int)((unsigned long)pointer);
weechat_hashtable_set (buflist_hashtable_pointers, "bar_item", item);
weechat_hashtable_set (buflist_hashtable_pointers, "window", window);
if (window)
weechat_hashtable_set (buflist_hashtable_pointers, "window", window);
ptr_format = buflist_config_format_buffer_eval;
ptr_format_current = buflist_config_format_buffer_current_eval;