aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-04 20:58:16 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-04 20:58:16 +0000
commite6d611a95aa10cf9f69f449d40a5015ae1161381 (patch)
tree848342a3ccfb7f4a219943609a565ed26230521f /vim-mode/vim_mode.pl
parentvim_mode: Use elsif where possible. (diff)
downloadirssi-scripts-e6d611a95aa10cf9f69f449d40a5015ae1161381.tar.gz
irssi-scripts-e6d611a95aa10cf9f69f449d40a5015ae1161381.zip
vim_mode: Also clear @ex_buf when pressing esc.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
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");