aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-11-04 20:40:06 +0000
committerTom Feist <shabble@metavore.org>2010-11-04 20:40:06 +0000
commite0411fd125e62a7326617204d7f343cb45d6d205 (patch)
treec97c202e8cb25afb6689a8efaf7b17db5b77209d /vim-mode/vim_mode.pl
parentvim_mode: cleaned up docs pointing now to uberprompt (diff)
downloadirssi-scripts-e0411fd125e62a7326617204d7f343cb45d6d205.tar.gz
irssi-scripts-e0411fd125e62a7326617204d7f343cb45d6d205.zip
vim_mode: bugfix for error on :map<spc>, should be treated as just :map<ret>
Diffstat (limited to 'vim-mode/vim_mode.pl')
-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 c796fbf..0eddc76 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1964,7 +1964,7 @@ sub ex_map {
add_map($lhs, $command);
# :map [lhs]
- } elsif ($arg_str eq 'map' or $arg_str =~ /^map (\S+)$/) {
+ } elsif ($arg_str =~ m/^map\s*$/ or $arg_str =~ m/^map (\S+)$/) {
# Necessary for case insensitive matchings. lc alone won't work.
my $search = $1;
$search = '' if not defined $search;