diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-14 21:34:58 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-14 21:34:58 +0000 |
commit | b58172a9b8459daf53205149cedc6a607de4f724 (patch) | |
tree | 9a55aa6a51add5b38d3d5ac5db7a3ccdeb23b212 | |
parent | vim_mode: Prevent invalid irssi options. (diff) | |
download | irssi-scripts-b58172a9b8459daf53205149cedc6a607de4f724.tar.gz irssi-scripts-b58172a9b8459daf53205149cedc6a607de4f724.zip |
vim_mode: Case insensitive on/off checking in :set.
-rw-r--r-- | vim-mode/vim_mode.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 08c5174..8956397 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1917,7 +1917,7 @@ sub ex_set { my $value = $2; # Also accept numeric values for boolean options. if ($settings->{$name}->{type} == S_BOOL and - $value !~ /^(on|off)$/) { + $value !~ /^(on|off)$/i) { $value = $value ? 'on' : 'off'; } Irssi::command("set vim_mode_$name $value"); |