summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-11-03 22:31:05 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-11-03 22:31:05 +0100
commit22602147977b42f4211697d77263be67c9506414 (patch)
treea37e1a382a15aa0ddf240bae44303a3cc75850a3 /src
parentab2684fd529257ffc271b8112ac8475805a3325f (diff)
downloadweechat-22602147977b42f4211697d77263be67c9506414.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-config-file.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}