]> granicus.if.org Git - procps-ng/commit
top: a few tweaks for those scrolling (mostly) changes
authorJim Warner <james.warner@comcast.net>
Sat, 23 Jun 2018 17:00:00 +0000 (12:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Jun 2018 11:22:12 +0000 (21:22 +1000)
commitc6e68e2fedc21b2537066433d1b50a60e06774eb
tree194d6640099ae555e05abeb569d179a672c11b50
parent2c2d86e6ccbf0a9e29b9585011bcb94da283d086
top: a few tweaks for those scrolling (mostly) changes

This patch just addresses some edge cases with respect
to 'unseen' tasks. Given the ability to preserve other
filters in the rcfile, it's entirely possible the very
first task(s) may not be visible at top startup. Also,
when switching between windows ('a'/'w') we should try
to always position its row #1 on some visible process.

Lastly, a window might have *NO* visible tasks at all.
Therefore, protect 'window_hlp' from an infinite loop.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h