aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
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) {