From 9a923eb7e7d6c812133b24025e674596d75943ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 1 Jun 2017 21:15:54 +0200 Subject: [PATCH] fset: fix slow (un)marking of options when there are a lot of options displayed --- src/plugins/fset/fset-command.c | 2 -- src/plugins/fset/fset-option.c | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index 7262bf297..d003f6175 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -338,8 +338,6 @@ fset_command_fset (const void *pointer, void *data, line = num_options - 1; fset_buffer_set_current_line (line); fset_buffer_check_line_outside_window (); - fset_option_set_max_length_fields_all (); - fset_buffer_refresh (0); } return WEECHAT_RC_OK; } diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index 7b137139b..6cd4e1ecf 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -532,9 +532,12 @@ fset_option_set_max_length_fields_option (struct t_fset_option *fset_option) /* marked */ fset_option_set_max_length_field ( - "marked", weechat_strlen_screen ( - (fset_option->marked) ? - weechat_config_string (fset_config_look_marked_string) : + "marked", + weechat_strlen_screen ( + weechat_config_string (fset_config_look_marked_string))); + fset_option_set_max_length_field ( + "marked", + weechat_strlen_screen ( weechat_config_string (fset_config_look_unmarked_string))); }