]> granicus.if.org Git - procps-ng/commit
top: force return to row 1 for thread mode transitions
authorJim Warner <james.warner@comcast.net>
Thu, 7 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:45:38 +0000 (21:45 +1000)
commit19ec80bd416c570a70f2fa7fa7e84a2667d71a08
tree32ffc6e2be61a2b295cc442739778cbb67dd3d67
parentc3323bdb687076f8e4800e7130f863ebec0a18fb
top: force return to row 1 for thread mode transitions

This program does a good job of policing that vertical
scrolled position, ensuring that total tasks are never
exceeded. However, during transitions from thread mode
to normal task mode (the 'H' toggle) that wasn't true.

And while there was no real harm done, it did make the
use of up/down arrow keys "appear" disabled especially
if that scroll message was not displayed ('C' toggle).

This patch simply forces a return to row #1 whenever a
user toggles that display between thread & task modes.

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