diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-08 16:19:58 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-08 16:19:58 +0000 |
commit | 919b1af9675e653ec9bac8e67d9568e53045f4e3 (patch) | |
tree | 14a512c8346c3949191e0e0423c09d96870ebfbf /vim-mode | |
parent | vim_mode: Scroll commands are not repeatable. (diff) | |
download | irssi-scripts-919b1af9675e653ec9bac8e67d9568e53045f4e3.tar.gz irssi-scripts-919b1af9675e653ec9bac8e67d9568e53045f4e3.zip |
vim_mode: Fix <C-D>/<C-U> only scrolling one line.
Reported by estragib.
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 089af2e..0f56639 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -321,8 +321,10 @@ my $commands D => { char => 'D', func => \&cmd_D, type => C_NORMAL, repeatable => 1 }, # scrolling - "\x04" => { char => '<C-D>', func => \&cmd_ctrl_d, type => C_NORMAL }, - "\x15" => { char => '<C-U>', func => \&cmd_ctrl_u, type => C_NORMAL }, + "\x04" => { char => '<C-D>', func => \&cmd_ctrl_d, type => C_NORMAL, + needs_count => 1 }, + "\x15" => { char => '<C-U>', func => \&cmd_ctrl_u, type => C_NORMAL, + needs_count => 1 }, "\x06" => { char => '<C-F>', func => \&cmd_ctrl_f, type => C_NORMAL }, "\x02" => { char => '<C-B>', func => \&cmd_ctrl_b, type => C_NORMAL }, # window switching |