]> 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:06:48 +0000 (08:06 +1100)
commit59f02f19c796cdd83a9ec8751f83e10c42080a44
tree38f28d3817ce949a06fa2276b78a0b199e16ab6c
parenta6dfc2382ed1e023dd345cdb1d2388c9b67bcc7f
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 9d59ddc4661453dc65a8fc81dd75bfea40b7696c

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