diff --git a/top/top.c b/top/top.c index a2678a37..088a59cf 100644 --- a/top/top.c +++ b/top/top.c @@ -5559,14 +5559,14 @@ static void keys_window (int ch) { case kbd_PGUP: if (VIZCHKw(w)) { if (CHKw(w, Show_IDLEPS) && 0 < w->begtask) { - w->begnext = -(w->winlines - 1); + w->begnext = -(w->winlines - (Rc.mode_altscr ? 1 : 2)); } } break; case kbd_PGDN: if (VIZCHKw(w)) { if (CHKw(w, Show_IDLEPS) && w->begtask < Frame_maxtask - 1) { - w->begnext = +(w->winlines - 1); + w->begnext = +(w->winlines - (Rc.mode_altscr ? 1 : 2)); } } break;