diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-11-11 08:25:54 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-11-11 08:25:54 +0100 |
commit | 16309be4ede1d61ff74a8d7bdebf1ac27d189ef7 (patch) | |
tree | 8fee29e5e95b865aca93586ed1180fc586c2f35b /src | |
parent | 4dd15157d2ad74894e465819ed1903147b9fcd6c (diff) | |
download | weechat-16309be4ede1d61ff74a8d7bdebf1ac27d189ef7.zip |
fset: only toggle boolean values with /fset -toggle or alt+space key
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fset/fset-command.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index ced50cc46..466f4e4d1 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -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" |