diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-27 02:32:28 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-27 02:32:28 +0000 |
commit | e5228912060c5b8a82a2c4c1c73d8ba06fb1975b (patch) | |
tree | ddd0423b76435cce4e3f99a6a1d65c410b72c510 /vim-mode/vim_mode.pl | |
parent | vim_mode: Implement registers. (diff) | |
download | irssi-scripts-e5228912060c5b8a82a2c4c1c73d8ba06fb1975b.tar.gz irssi-scripts-e5228912060c5b8a82a2c4c1c73d8ba06fb1975b.zip |
vim_mode: esc also resets all command mode related settings.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 26577a8..45acf79 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -755,6 +755,13 @@ sub handle_esc_buffer { print "Enter Command Mode" if DEBUG; _update_mode(M_CMD); + # Reset every command mode related setting as a fallback in case + # something goes wrong. + $numeric_prefix = undef; + $operator = undef; + $movement = undef; + $register = '"'; + } else { # we need to identify what we got, and either replay it # or pass it off to the command handler. |