aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 00:31:57 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 00:31:57 +0000
commit95cd31d1cc46c0e8128941862f19015f2f50af62 (patch)
tree5866a4da360588073fc6712f33baf3db680a754e /vim-mode
parentvim_mode: Add :map to allow custom mappings. (diff)
downloadirssi-scripts-95cd31d1cc46c0e8128941862f19015f2f50af62.tar.gz
irssi-scripts-95cd31d1cc46c0e8128941862f19015f2f50af62.zip
vim_mode: Fix :map on a placeholder mapping.
Like mapping something to g when no g is used yet (but there are gg G).
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index e941d07..5e33bf4 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2345,6 +2345,7 @@ sub add_map {
maps => {}
};
} else {
+ $maps->{$keys}->{char} = $keys;
$maps->{$keys}->{cmd} = $command;
}
}