aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 48b7143..5e23c02 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2866,8 +2866,6 @@ sub _update_mode {
# Make sure prompt is cleared when leaving ex mode.
} elsif ($mode == M_EX and $new_mode != M_EX) {
_set_prompt('');
-
- $partial_command = '';
}
$mode = $new_mode;
@@ -2884,6 +2882,7 @@ sub _update_mode {
$register = '"';
$pending_map = undef;
+ $partial_command = '';
# Also clear ex-mode buffer.
@ex_buf = ();