From 77bc38d21d4de3eba342dc096712571aface0601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 18 Mar 2024 21:44:23 +0100 Subject: [PATCH] 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. --- src/gui/gui-bar-item.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 08d8cfcd0..5dd42d570 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -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) */