From 4ce0d2af6d614802722cedcef39bf9d79a3a5fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 2 Jul 2017 12:48:55 +0200 Subject: [PATCH] fset: remove useless check/set of fset_buffer_selected_line This is already done in the function fset_option_get_options. --- src/plugins/fset/fset-option.c | 10 ---------- 1 file changed, 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