aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-08 20:29:05 +0000
committerTom Feist <shabble@metavore.org>2010-10-08 20:29:05 +0000
commite9920250edf42ad5a76daea4f532be2058d51230 (patch)
treecbe4fc3a754ce7876745f5af47c11e2390f84c97
parentadded TODO file based on rudi_s' list. (diff)
parentvim_mode: Fix :map with {rhs} with only one char. (diff)
downloadirssi-scripts-e9920250edf42ad5a76daea4f532be2058d51230.tar.gz
irssi-scripts-e9920250edf42ad5a76daea4f532be2058d51230.zip
Merge remote branch 'origin/dev'
Diffstat (limited to '')
-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");