summaryrefslogtreecommitdiff
path: root/src/plugins/fset
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-01 21:15:54 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-25 16:35:27 +0200
commit9a923eb7e7d6c812133b24025e674596d75943ec (patch)
tree6d5c97232f411a0e851298588c8cca62d03009e0 /src/plugins/fset
parentc395bc4aba99908ffe51294f4c29652a41644d6c (diff)
downloadweechat-9a923eb7e7d6c812133b24025e674596d75943ec.zip
fset: fix slow (un)marking of options when there are a lot of options displayed
Diffstat (limited to 'src/plugins/fset')
-rw-r--r--src/plugins/fset/fset-command.c2
-rw-r--r--src/plugins/fset/fset-option.c9
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)));
}