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:
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user