1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

core: reduce number of re-sort of hotlist (issue #2097)

Restore original signals caught: "buffer_moved" and "buffer_closed", and the
signal "buffer_localvar_*" is added so that any local variable
added/changed/removed triggers a re-sort of hotlist.
This commit is contained in:
Sébastien Helleu
2024-03-18 21:44:23 +01:00
parent 34a72ac02e
commit 77bc38d21d
+2 -1
View File
@@ -2448,7 +2448,8 @@ gui_bar_item_init ()
gui_bar_item_new (NULL,
gui_bar_item_names[GUI_BAR_ITEM_HOTLIST],
&gui_bar_item_hotlist_cb, NULL, NULL);
gui_bar_item_hook_signal ("hotlist_changed;buffer_*",
gui_bar_item_hook_signal ("hotlist_changed;buffer_moved;buffer_closed;"
"buffer_localvar_*",
gui_bar_item_names[GUI_BAR_ITEM_HOTLIST]);
/* completion (possible words when a partial completion occurs) */