diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-14 21:34:39 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-14 21:34:39 +0000 |
commit | 6317b9b0c63042d096a139d79e6a83e3b6e15ba4 (patch) | |
tree | 91fedaf199ae78c5b38ebb8023a729c5048557ae /vim-mode | |
parent | vim_mode: Automatically register and sync options. (diff) | |
download | irssi-scripts-6317b9b0c63042d096a139d79e6a83e3b6e15ba4.tar.gz irssi-scripts-6317b9b0c63042d096a139d79e6a83e3b6e15ba4.zip |
vim_mode: Prevent invalid irssi options.
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 3 |
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}); } } |