From 3102e11d2948305f7104ead25cf5398f280903b9 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 15 Oct 2010 20:57:00 +0200 Subject: vim_mode: Aborting command also updates partial command. Reported by estragib. --- vim-mode/vim_mode.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vim-mode/vim_mode.pl') 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 = (); -- cgit v1.2.3