]> granicus.if.org Git - procps-ng/commit
top: plug a minor hole in the vertical scrolling logic
authorJim Warner <james.warner@comcast.net>
Tue, 18 Sep 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 2 Jan 2019 21:01:25 +0000 (08:01 +1100)
commit664d2517da6e29574f79ff3f0faecfae15d589eb
tree2e8ed595f1f5a06a34e0ab4e7bafe285b4613dd0
parentb3b7a35050e29317fa66be4535aeaf83acbdc946
top: plug a minor hole in the vertical scrolling logic

In that commit referenced below, a few edge cases were
addressed regarding vertical positioning involving any
'hidden' tasks. But, 2 additional edge cases remained.

In a running top, if the user employed 'other filters'
(o/O) or 'user filters' (u/U) proper vertical position
was not ensured. And, while this could be easily fixed
by striking the home/end or up/down arrow keys, it was
very poor etiquette to shift this burden to the users.

So, this patch plugs that gap, automating the process.

Reference(s):
commit c6e68e2fedc21b2537066433d1b50a60e06774eb

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