aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl7
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.