diff options
author | Tom Feist <shabble@metavore.org> | 2010-11-04 20:40:06 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-11-04 20:40:06 +0000 |
commit | e0411fd125e62a7326617204d7f343cb45d6d205 (patch) | |
tree | c97c202e8cb25afb6689a8efaf7b17db5b77209d | |
parent | vim_mode: cleaned up docs pointing now to uberprompt (diff) | |
download | irssi-scripts-e0411fd125e62a7326617204d7f343cb45d6d205.tar.gz irssi-scripts-e0411fd125e62a7326617204d7f343cb45d6d205.zip |
vim_mode: bugfix for error on :map<spc>, should be treated as just :map<ret>
-rw-r--r-- | vim-mode/vim_mode.pl | 2 |
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; |