mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
buflist: add pointer "window" in bar item evaluation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user