aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode/vim_mode.pl')
-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");