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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user