mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
fset: only toggle boolean values with /fset -toggle or alt+space key
This commit is contained in:
@@ -252,10 +252,7 @@ fset_command_fset (const void *pointer, void *data,
|
||||
else
|
||||
{
|
||||
fset_command_get_option (&ptr_fset_option, &ptr_option);
|
||||
if (ptr_fset_option->type == FSET_OPTION_TYPE_BOOLEAN)
|
||||
fset_option_toggle_value (ptr_fset_option, ptr_option);
|
||||
else
|
||||
fset_option_set (ptr_fset_option, ptr_option, buffer, -1);
|
||||
fset_option_toggle_value (ptr_fset_option, ptr_option);
|
||||
}
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -611,8 +608,7 @@ fset_command_init ()
|
||||
"on the right\n"
|
||||
" -go: select a line by number, first line number is 0 "
|
||||
"(\"end\" to select the last line)\n"
|
||||
" -toggle: toggle the boolean value, set a new value for other "
|
||||
"types\n"
|
||||
" -toggle: toggle the boolean value\n"
|
||||
" -add: add \"value\" (which can be a negative number) "
|
||||
"for integers and colors, set/append to value for other types "
|
||||
"(set for a negative value, append for a positive value)\n"
|
||||
|
||||
Reference in New Issue
Block a user