1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

fset: fix slow (un)marking of options when there are a lot of options displayed

This commit is contained in:
Sébastien Helleu
2017-06-01 21:15:54 +02:00
parent c395bc4aba
commit 9a923eb7e7
2 changed files with 6 additions and 5 deletions
-2
View File
@@ -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;
}
+6 -3
View File
@@ -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)));
}