aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 23:17:49 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 23:17:49 +0000
commitff5fb6c40953421e40f4118473547096474f35de (patch)
treeac0e4a6bf42289905c67a75a23dff1f4cc66e933
parentvim_mode: Add :mkv[imrc]. (diff)
downloadirssi-scripts-ff5fb6c40953421e40f4118473547096474f35de.tar.gz
irssi-scripts-ff5fb6c40953421e40f4118473547096474f35de.zip
vim_mode: Fix :map with ex-commands.
Broken in d736f605126e368124b3ff8ed4db5b28f83b650f.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index f18fb09..065411e 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2072,7 +2072,7 @@ sub handle_command_cmd {
# 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->{char});
+ $cmd->{func}->(substr $cmd->{char}, 1);
return 1; # call _stop()
# As can irssi commands.
} elsif ($cmd->{type} == C_IRSSI) {