From 919b1af9675e653ec9bac8e67d9568e53045f4e3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 8 Oct 2010 18:19:58 +0200 Subject: vim_mode: Fix / only scrolling one line. Reported by estragib. --- vim-mode/vim_mode.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vim-mode') 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 => '', func => \&cmd_ctrl_d, type => C_NORMAL }, - "\x15" => { char => '', func => \&cmd_ctrl_u, type => C_NORMAL }, + "\x04" => { char => '', func => \&cmd_ctrl_d, type => C_NORMAL, + needs_count => 1 }, + "\x15" => { char => '', func => \&cmd_ctrl_u, type => C_NORMAL, + needs_count => 1 }, "\x06" => { char => '', func => \&cmd_ctrl_f, type => C_NORMAL }, "\x02" => { char => '', func => \&cmd_ctrl_b, type => C_NORMAL }, # window switching -- cgit v1.2.3