From e6d611a95aa10cf9f69f449d40a5015ae1161381 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Oct 2010 22:58:16 +0200 Subject: vim_mode: Also clear @ex_buf when pressing esc. --- vim-mode/vim_mode.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vim-mode/vim_mode.pl') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 16247cf..61672da 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1867,7 +1867,6 @@ sub handle_command_ex { } elsif ($key == 10) { print "Run ex-mode command" if DEBUG; cmd_ex_command(); - @ex_buf = (); _update_mode(M_CMD); # Append entered key @@ -2120,6 +2119,9 @@ sub _update_mode { $operator = undef; $movement = undef; $register = '"'; + + # Also clear ex-mode buffer. + @ex_buf = (); } Irssi::statusbar_items_redraw("vim_mode"); -- cgit v1.2.3