diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-07-02 12:48:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-07-02 12:48:55 +0200 |
commit | 4ce0d2af6d614802722cedcef39bf9d79a3a5fcd (patch) | |
tree | 2d3e35448d6a8b529507202a086dc87978cf2c0b /src/plugins | |
parent | 860330a6bf3aea704d391542d44caf5aff1bff20 (diff) | |
download | weechat-4ce0d2af6d614802722cedcef39bf9d79a3a5fcd.zip |
fset: remove useless check/set of fset_buffer_selected_line
This is already done in the function fset_option_get_options.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fset/fset-option.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index e0a42d30a..9b364f2e1 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -1423,16 +1423,6 @@ fset_option_config_changed (const char *option_name) if (full_refresh) { fset_option_get_options (); - num_options = weechat_arraylist_size (fset_options); - if (num_options > 0) - { - if (fset_buffer_selected_line >= num_options) - fset_buffer_selected_line = num_options - 1; - } - else - { - fset_buffer_selected_line = 0; - } fset_buffer_refresh (1); } else |