aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-14 21:34:39 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-14 21:34:39 +0000
commit6317b9b0c63042d096a139d79e6a83e3b6e15ba4 (patch)
tree91fedaf199ae78c5b38ebb8023a729c5048557ae
parentvim_mode: Automatically register and sync options. (diff)
downloadirssi-scripts-6317b9b0c63042d096a139d79e6a83e3b6e15ba4.tar.gz
irssi-scripts-6317b9b0c63042d096a139d79e6a83e3b6e15ba4.zip
vim_mode: Prevent invalid irssi options.
-rw-r--r--vim-mode/vim_mode.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 4baad78..08c5174 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2567,6 +2567,9 @@ sub setup_changed {
$settings->{cmd_seq}->{value} = $value;
} else {
_warn("Error: vim_mode_cmd_seq must be a single character");
+ # Restore the value so $settings and irssi settings are
+ # consistent.
+ _setting_set('cmd_seq', $settings->{cmd_seq}->{value});
}
}