From e5228912060c5b8a82a2c4c1c73d8ba06fb1975b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Sep 2010 04:32:28 +0200 Subject: vim_mode: esc also resets all command mode related settings. --- vim-mode/vim_mode.pl | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- cgit v1.2.3