diff options
author | Simon Ruderich <simon@ruderich.org> | 2011-02-12 11:37:54 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2011-02-12 11:37:54 +0000 |
commit | 8c54f40902ce38987b71c71ffb0f269c1bb7ca1f (patch) | |
tree | 43b599f0725efd73477bf81937e92b09987bc4aa | |
parent | vim-mode: Support ^H as BS key. (diff) | |
download | irssi-scripts-8c54f40902ce38987b71c71ffb0f269c1bb7ca1f.tar.gz irssi-scripts-8c54f40902ce38987b71c71ffb0f269c1bb7ca1f.zip |
vim-mode: Fix :map displaying <C-H> as mapped to <BS>.
-rw-r--r-- | vim-mode/vim_mode.pl | 2 |
1 files changed, 2 insertions, 0 deletions
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 <C-H> doesn't show up as mapped to <BS>. + next if $map->{char} eq '<C-H>' and $cmd->{char} eq '<BS>'; next if $map->{char} !~ /^\Q$search\E/; # skip non-matches $active_window->print(sprintf "%-15s %s", $map->{char}, $cmd->{char}); |