]> granicus.if.org Git - procps-ng/commit
top: a few tweaks for those scrolling (mostly) changes
authorJim Warner <james.warner@comcast.net>
Thu, 21 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Jun 2018 11:25:18 +0000 (21:25 +1000)
commit9d59ddc4661453dc65a8fc81dd75bfea40b7696c
treeb463c14743a964314f385b4e133ab843f5a28673
parent6aedeac667267b24ba7f03914eec768d661651ed
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