aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-30 20:55:41 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-30 20:55:41 +0000
commit61ebb39943e3ca8b32a724c14885399b55f51709 (patch)
treee76758f43385dcb7326cbe081cff740b46d817f7 /vim-mode/vim_mode.pl
parentvim_mode: Also unregister the vim_windows statusbar. (diff)
downloadirssi-scripts-61ebb39943e3ca8b32a724c14885399b55f51709.tar.gz
irssi-scripts-61ebb39943e3ca8b32a724c14885399b55f51709.zip
vim_mode: Fix insert repeat forgetting flushed @input_buf chars.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index ebed331..89b2dd0 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1126,6 +1126,9 @@ sub flush_input_buffer {
# see what we've collected.
print "Input buffer flushed" if DEBUG;
+ # Add the characters to @insert_buf so they can be repeated.
+ push @insert_buf, map chr, @input_buf;
+
_emulate_keystrokes(@input_buf);
@input_buf = ();