summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c2
-rw-r--r--src/plugins/buflist/buflist-command.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index fc4a6f8ff..52bf0a243 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -292,7 +292,6 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
/* make C compiler happy */
(void) data;
- (void) window;
(void) buffer;
(void) extra_info;
@@ -308,6 +307,7 @@ 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);
ptr_format = buflist_config_format_buffer_eval;
ptr_format_current = buflist_config_format_buffer_current_eval;
diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c
index 1aea61eba..86e30a7b1 100644
--- a/src/plugins/buflist/buflist-command.c
+++ b/src/plugins/buflist/buflist-command.c
@@ -84,9 +84,14 @@ buflist_command_init ()
" - buflist.format.buffer_current: format for the current buffer\n"
"\n"
"The following variables can be used in these options:\n"
- " - bar item data (see hdata \"bar_item\" in API doc for a complete "
- "list), for example:\n"
+ " - bar item data (see hdata \"bar_item\" in API doc for a "
+ "complete list), for example:\n"
" - ${bar_item.name}\n"
+ " - window data, where the bar item is displayed (there's no "
+ "window in root bars, see hdata \"window\" in API doc for a "
+ "complete list), for example:\n"
+ " - ${window.number}\n"
+ " - ${window.buffer.full_name}\n"
" - buffer data (see hdata \"buffer\" in API doc for a complete "
"list), for example:\n"
" - ${buffer.number}\n"