aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-07 16:49:52 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-07 16:49:52 +0000
commitdda9e7519366508cebaf08fd820937b636698dd6 (patch)
treee8ee9c09dde1489cca84fc7f39ebb645ca9a63c9 /vim-mode/vim_mode.pl
parentvim_mode: Fix ex-mode broken in last commit. (diff)
downloadirssi-scripts-dda9e7519366508cebaf08fd820937b636698dd6.tar.gz
irssi-scripts-dda9e7519366508cebaf08fd820937b636698dd6.zip
vim_mode: Fix Ctrl-W j, Ctrl-W k.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl13
1 files changed, 5 insertions, 8 deletions
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 => '<c-b>', func => \&cmd_ctrl_b, type => C_NORMAL,
repeatable => 1 }, # screen up
# window switching
- "\x17j" => { char => '<c-w>j', func => \&cmd_ctrl_wj, type => C_NORMAL,
- needs_count => 1 },
- "\x17k" => { char => '<c-w>k', func => \&cmd_ctrl_wk, type => C_NORMAL,
- needs_count => 1 },
- "\x1e" => { char => '<c-6>', func => \&cmd_ctrl_6, type => C_NORMAL,
- needs_count => 1 },
+ "\x17j" => { char => '<c-w>j', func => \&cmd_ctrl_wj, type => C_NORMAL },
+ "\x17k" => { char => '<c-w>k', func => \&cmd_ctrl_wk, type => C_NORMAL },
+ "\x1e" => { char => '<c-6>', 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');
}