aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-09 23:05:22 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-09 23:05:22 +0000
commit143ae36a262401892e6fff8f610375ed9c67ffdb (patch)
tree8695010f716d5dc6f325cfd776a630920696e168
parentvim_mode: Mapped irssi and <Nop> commands reset count. (diff)
downloadirssi-scripts-143ae36a262401892e6fff8f610375ed9c67ffdb.tar.gz
irssi-scripts-143ae36a262401892e6fff8f610375ed9c67ffdb.zip
vim_mode: Allow mappings with numbers.
But not as the first key.
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index e866a23..181d854 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2066,8 +2066,8 @@ sub handle_command_cmd {
}
# Counts
- if (!$movement and ($char =~ m/[1-9]/ or
- ($numeric_prefix && $char =~ m/[0-9]/))) {
+ if (!$movement and !$pending_map and
+ ($char =~ m/[1-9]/ or ($numeric_prefix && $char =~ m/[0-9]/))) {
print "Processing numeric prefix: $char" if DEBUG;
handle_numeric_prefix($char);
return 1; # call _stop()