From 22602147977b42f4211697d77263be67c9506414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 3 Nov 2023 22:31:05 +0100 Subject: core: call hook config when options are freed by unset or when file/section is freed This fixes a refresh issue on the fset buffer when a plugin is unloaded: now the options displayed that are freed are properly removed from the fset buffer. --- src/core/wee-config-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c index c3619d839..27c90bdd6 100644 --- a/src/core/wee-config-file.c +++ b/src/core/wee-config-file.c @@ -2232,7 +2232,7 @@ config_file_option_unset (struct t_config_option *option) } else { - config_file_option_free (option, 0); + config_file_option_free (option, 1); rc = WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED; } @@ -3956,7 +3956,7 @@ config_file_section_free_options (struct t_config_section *section) while (section->options) { - config_file_option_free (section->options, 0); + config_file_option_free (section->options, 1); } } -- cgit v1.2.3