aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-09 22:36:22 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-09 22:36:22 +0000
commitfb0e4bbaaf74e9072b5af9d32f9fded2b4a0d50c (patch)
tree654e1a280902241916e00cb9be640154f83209be
parentvim_mode: Support counts with mapped ex-commands. (diff)
downloadirssi-scripts-fb0e4bbaaf74e9072b5af9d32f9fded2b4a0d50c.tar.gz
irssi-scripts-fb0e4bbaaf74e9072b5af9d32f9fded2b4a0d50c.zip
vim_mode: Mapped irssi and <Nop> commands reset count.
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index fad440a..e866a23 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2137,10 +2137,14 @@ sub handle_command_cmd {
} elsif ($cmd->{type} == C_IRSSI) {
print "Processing irssi-command: $map->{char} ($cmd->{char})" if DEBUG;
Irssi::command($cmd->{func});
+
+ $numeric_prefix = undef;
return 1; # call _stop();
# <Nop> does nothing.
} elsif ($cmd->{type} == C_NOP) {
print "Processing <Nop>: $map->{char}" if DEBUG;
+
+ $numeric_prefix = undef;
return 1; # call _stop();
}