From dda9e7519366508cebaf08fd820937b636698dd6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 7 Oct 2010 18:49:52 +0200 Subject: vim_mode: Fix Ctrl-W j, Ctrl-W k. --- vim-mode/vim_mode.pl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index f6ba516..6f779bb 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -287,12 +287,9 @@ my $commands "\x02" => { char => '', func => \&cmd_ctrl_b, type => C_NORMAL, repeatable => 1 }, # screen up # window switching - "\x17j" => { char => 'j', func => \&cmd_ctrl_wj, type => C_NORMAL, - needs_count => 1 }, - "\x17k" => { char => 'k', func => \&cmd_ctrl_wk, type => C_NORMAL, - needs_count => 1 }, - "\x1e" => { char => '', func => \&cmd_ctrl_6, type => C_NORMAL, - needs_count => 1 }, + "\x17j" => { char => 'j', func => \&cmd_ctrl_wj, type => C_NORMAL }, + "\x17k" => { char => 'k', func => \&cmd_ctrl_wk, type => C_NORMAL }, + "\x1e" => { char => '', func => \&cmd_ctrl_6, type => C_NORMAL }, # misc '~' => { char => '~', func => \&cmd_tilde, type => C_NORMAL, repeatable => 1 }, @@ -1270,7 +1267,7 @@ sub cmd_ctrl_b { sub cmd_ctrl_wj { my ($count, $pos, $repeat) = @_; - while ($count -- > 0) { + while ($count-- > 0) { Irssi::command('window down'); } @@ -1279,7 +1276,7 @@ sub cmd_ctrl_wj { sub cmd_ctrl_wk { my ($count, $pos, $repeat) = @_; - while ($count -- > 0) { + while ($count-- > 0) { Irssi::command('window up'); } -- cgit v1.2.3