top: standardize PgUp/PgDn management within task area
This commit standardizes the behavior of the PgUp/PgDn keys when on the main top display. With PgDn, the last process will become the first process. With PgUp, that first task will now appear as the last task displayed. [ this also eliminates some quirks that were evident ] [ when paging at or near the end of the process list ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
e6a2931c39
commit
97e1264525
@ -5141,14 +5141,14 @@ static void keys_window (int ch) {
|
|||||||
case kbd_PGUP:
|
case kbd_PGUP:
|
||||||
if (VIZCHKw(w)) {
|
if (VIZCHKw(w)) {
|
||||||
if (CHKw(w, Show_IDLEPS) && 0 < w->begtask) {
|
if (CHKw(w, Show_IDLEPS) && 0 < w->begtask) {
|
||||||
w->begnext = -(w->winlines - 1);
|
w->begnext = -(w->winlines - (Rc.mode_altscr ? 1 : 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case kbd_PGDN:
|
case kbd_PGDN:
|
||||||
if (VIZCHKw(w)) {
|
if (VIZCHKw(w)) {
|
||||||
if (CHKw(w, Show_IDLEPS) && w->begtask < PIDSmaxt - 1) {
|
if (CHKw(w, Show_IDLEPS) && w->begtask < PIDSmaxt - 1) {
|
||||||
w->begnext = +(w->winlines - 1);
|
w->begnext = +(w->winlines - (Rc.mode_altscr ? 1 : 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user