aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-14 21:34:58 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-14 21:34:58 +0000
commitb58172a9b8459daf53205149cedc6a607de4f724 (patch)
tree9a55aa6a51add5b38d3d5ac5db7a3ccdeb23b212 /vim-mode/vim_mode.pl
parentvim_mode: Prevent invalid irssi options. (diff)
downloadirssi-scripts-b58172a9b8459daf53205149cedc6a607de4f724.tar.gz
irssi-scripts-b58172a9b8459daf53205149cedc6a607de4f724.zip
vim_mode: Case insensitive on/off checking in :set.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl2
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");