diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-08 00:31:57 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-08 00:31:57 +0000 |
commit | 95cd31d1cc46c0e8128941862f19015f2f50af62 (patch) | |
tree | 5866a4da360588073fc6712f33baf3db680a754e | |
parent | vim_mode: Add :map to allow custom mappings. (diff) | |
download | irssi-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).
-rw-r--r-- | vim-mode/vim_mode.pl | 1 |
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; } } |