aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-10 20:39:07 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-10 20:39:07 +0000
commitecf7327440954c61e65027b983489b76002a0436 (patch)
tree40d56a3b91cf2a3b7592db7a3c8e806c23965db3 /vim-mode
parentvim_mode: Fix pasting registers containing only "0". (diff)
downloadirssi-scripts-ecf7327440954c61e65027b983489b76002a0436.tar.gz
irssi-scripts-ecf7327440954c61e65027b983489b76002a0436.zip
vim_mode: Fix warning when mapping :map.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 20562a7..f9bb2ff 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1737,7 +1737,9 @@ sub ex_map {
# :map [lhs]
} elsif ($arg_str eq 'map' or $arg_str =~ /^map (\S+)$/) {
# Necessary for case insensitive matchings. lc alone won't work.
- my $search = _parse_mapping_reverse(_parse_mapping($1));
+ my $search = $1;
+ $search = '' if not defined $search;
+ $search = _parse_mapping_reverse(_parse_mapping($search));
my $active_window = Irssi::active_win();
foreach my $key (sort keys %$maps) {