aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 16:19:58 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 16:19:58 +0000
commit919b1af9675e653ec9bac8e67d9568e53045f4e3 (patch)
tree14a512c8346c3949191e0e0423c09d96870ebfbf /vim-mode/vim_mode.pl
parentvim_mode: Scroll commands are not repeatable. (diff)
downloadirssi-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/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl6
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