From 8c54f40902ce38987b71c71ffb0f269c1bb7ca1f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 12 Feb 2011 12:37:54 +0100 Subject: vim-mode: Fix :map displaying as mapped to . --- vim-mode/vim_mode.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index a0be248..428156c 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1991,6 +1991,8 @@ sub ex_map { my $cmd = $map->{cmd}; if (defined $cmd) { next if $map->{char} eq $cmd->{char}; # skip default mappings + # FIXME: Hack so doesn't show up as mapped to . + next if $map->{char} eq '' and $cmd->{char} eq ''; next if $map->{char} !~ /^\Q$search\E/; # skip non-matches $active_window->print(sprintf "%-15s %s", $map->{char}, $cmd->{char}); -- cgit v1.2.3