aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 19:35:37 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 19:36:18 +0000
commit61f3be581251267d6d10969e28771505889b20ba (patch)
treedd5124e102dfd4584575060330ead40b03a44f54 /vim-mode
parentMerge remote branch 'origin/dev' (diff)
downloadirssi-scripts-61f3be581251267d6d10969e28771505889b20ba.tar.gz
irssi-scripts-61f3be581251267d6d10969e28771505889b20ba.zip
vim_mode: Fix :map with {rhs} with only one char.
Diffstat (limited to 'vim-mode')
-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 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");