diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-08 19:35:37 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-08 19:36:18 +0000 |
commit | 61f3be581251267d6d10969e28771505889b20ba (patch) | |
tree | dd5124e102dfd4584575060330ead40b03a44f54 /vim-mode | |
parent | Merge remote branch 'origin/dev' (diff) | |
download | irssi-scripts-61f3be581251267d6d10969e28771505889b20ba.tar.gz irssi-scripts-61f3be581251267d6d10969e28771505889b20ba.zip |
vim_mode: Fix :map with {rhs} with only one char.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index feea4c6..5d6dfe1 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1574,7 +1574,7 @@ sub ex_map { my ($arg_str) = @_; # :map {lhs} {rhs} - if ($arg_str =~ /^map (\S+) (\S.+)$/) { + if ($arg_str =~ /^map (\S+) (\S.*)$/) { my $lhs = _parse_mapping($1); my $rhs = $2; @@ -1683,7 +1683,7 @@ sub ex_source { chomp $line; # :map {lhs} {rhs}, keep in sync with ex_map() - if ($line =~ /^\s*map (\S+) (\S.+)$/) { + if ($line =~ /^\s*map (\S+) (\S.*)$/) { ex_map($line); } else { _warn_ex('source', "command not supported: $line"); |