diff --git a/top/top.c b/top/top.c index d0ce0ecd..d649e4b7 100644 --- a/top/top.c +++ b/top/top.c @@ -4369,10 +4369,10 @@ static void keys_window (int ch) { } break; case kbd_UP: - if (VIZCHKw(w)) if (0 < w->begtask) w->begtask -= 1; + if (VIZCHKw(w)) if (CHKw(w, Show_IDLEPS) && 0 < w->begtask) w->begtask -= 1; break; case kbd_DOWN: - if (VIZCHKw(w)) if (w->begtask < PIDSmaxt -1) w->begtask += 1; + if (VIZCHKw(w)) if (CHKw(w, Show_IDLEPS) && (w->begtask < PIDSmaxt -1)) w->begtask += 1; break; #ifdef USE_X_COLHDR // ------------------------------------ case kbd_LEFT: