summaryrefslogtreecommitdiff
path: root/src/plugins/buflist/buflist-bar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/buflist/buflist-bar-item.c')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index 4f45592de..38c0a21e7 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -168,6 +168,11 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
goto error;
}
+ /* current buffer */
+ weechat_hashtable_set (buflist_hashtable_extra_vars,
+ "current_buffer",
+ (current_buffer) ? "1" : "0");
+
/* buffer number */
number = weechat_hdata_integer (buflist_hdata_buffer,
ptr_buffer, "number");