aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-08 19:22:24 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-08 19:22:24 +0000
commit7a8b3aa0ea4571c278d68cea51c4ccd10fc7a011 (patch)
treee53974ebe1810b69baa0dbf258ffec936a27cdbe /vim-mode/vim_mode.pl
parentvim_mode: Add undo/redo positions to known bugs. (diff)
downloadirssi-scripts-7a8b3aa0ea4571c278d68cea51c4ccd10fc7a011.tar.gz
irssi-scripts-7a8b3aa0ea4571c278d68cea51c4ccd10fc7a011.zip
vim_mode: Fix display of 'more' statusbar when scrolling.
Reported by estragib.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 28e254d..feea4c6 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1300,6 +1300,8 @@ sub cmd_ctrl_d {
$count = $window->{height} / 2;
}
$window->view()->scroll($count);
+
+ Irssi::statusbar_items_redraw('more');
return (undef, undef);
}
sub cmd_ctrl_u {
@@ -1311,6 +1313,8 @@ sub cmd_ctrl_u {
$count = $window->{height} / 2;
}
$window->view()->scroll($count * -1);
+
+ Irssi::statusbar_items_redraw('more');
return (undef, undef);
}
sub cmd_ctrl_f {
@@ -1318,13 +1322,14 @@ sub cmd_ctrl_f {
my $window = Irssi::active_win();
$window->view()->scroll($count * $window->{height});
+
+ Irssi::statusbar_items_redraw('more');
return (undef, undef);
}
sub cmd_ctrl_b {
my ($count, $pos, $repeat) = @_;
- cmd_ctrl_f($count * -1, $pos, $repeat);
- return (undef, undef);
+ return cmd_ctrl_f($count * -1, $pos, $repeat);
}
sub cmd_ctrl_wj {