diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-02 22:55:53 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-25 16:35:27 +0200 |
commit | 55350d8a29bae91e521ea4179c85e4669b639eaa (patch) | |
tree | c58c1318fe1ad725fc08cd635813fa7f1ba7950f /src | |
parent | feace6be0baca1895ea47f6d8faebb623c98e9ff (diff) | |
download | weechat-55350d8a29bae91e521ea4179c85e4669b639eaa.zip |
fset: remove useless refresh when an option not displayed is changed
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fset/fset-option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index b1978af9b..133df19b9 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -1069,10 +1069,10 @@ fset_option_config_changed (const char *option_name) ptr_fset_option = (option_name) ? fset_option_search_by_name (option_name, &line) : NULL; + ptr_option = (option_name) ? weechat_config_get (option_name) : NULL; if (ptr_fset_option) { - ptr_option = weechat_config_get (ptr_fset_option->name); if (ptr_option) { fset_option_set_values (ptr_fset_option, ptr_option); @@ -1084,7 +1084,7 @@ fset_option_config_changed (const char *option_name) full_refresh = 1; } } - else + else if (!ptr_option) { /* option added: get options and refresh the whole buffer */ full_refresh = 1; |