aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 16:07:21 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 16:08:51 +0000
commitd6238f38be11ca65f77a1c02324972e6da4519bf (patch)
tree7e59fbf07d368fe6ad6b60ed25eb45bb2a2c0ae2
parentvim_mode: Fix x and X broken in last commit. (diff)
downloadirssi-scripts-d6238f38be11ca65f77a1c02324972e6da4519bf.tar.gz
irssi-scripts-d6238f38be11ca65f77a1c02324972e6da4519bf.zip
vim_mode: Fix mapping ex-commands which take an argument.
Reported by estragib.
Diffstat (limited to '')
-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 45b84a6..a3d9723 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2012,10 +2012,10 @@ sub handle_command_cmd {
}
# Ex-mode commands can also be bound in command mode. Works only if the
- # ex-mode command doesn't take any arguments.
+ # ex-mode command doesn't need any additional arguments.
if ($cmd->{type} == C_EX) {
print "Processing ex-command: $map->{char} ($cmd->{char})" if DEBUG;
- $cmd->{func}->();
+ $cmd->{func}->($cmd->{char});
return 1; # call _stop()
}