aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2011-02-12 11:37:54 +0000
committerSimon Ruderich <simon@ruderich.org>2011-02-12 11:37:54 +0000
commit8c54f40902ce38987b71c71ffb0f269c1bb7ca1f (patch)
tree43b599f0725efd73477bf81937e92b09987bc4aa /vim-mode
parentvim-mode: Support ^H as BS key. (diff)
downloadirssi-scripts-8c54f40902ce38987b71c71ffb0f269c1bb7ca1f.tar.gz
irssi-scripts-8c54f40902ce38987b71c71ffb0f269c1bb7ca1f.zip
vim-mode: Fix :map displaying <C-H> as mapped to <BS>.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl2
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});