diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-30 21:45:46 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-30 21:45:46 +0000 |
commit | 800020720932c089a0997fe7aa1be241a15f2d80 (patch) | |
tree | 64bff32efee267beb2fadf9f5df497866b9e4e0b | |
parent | vim_mode: Fix insert repeat forgetting flushed @input_buf chars. (diff) | |
download | irssi-scripts-800020720932c089a0997fe7aa1be241a15f2d80.tar.gz irssi-scripts-800020720932c089a0997fe7aa1be241a15f2d80.zip |
vim_mode: Implement black hole register.
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 89b2dd0..1de7a6d 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -186,6 +186,7 @@ my $registers '"' => '', # default register '+' => '', # contains irssi's cut buffer '*' => '', # same + '_' => '', # black hole register, always empty }; foreach my $char ('a' .. 'z') { $registers->{$char} = ''; @@ -802,6 +803,11 @@ sub cmd_movement_register { return; } + # make sure black hole register is always empty + if ($char eq '_') { + $registers->{_} = ''; + } + # + and * contain both irssi's cut-buffer if ($char eq '+' or $char eq '*') { $registers->{'+'} = Irssi::parse_special('$U'); |