]> granicus.if.org Git - procps-ng/commit
top: fix regression created when fields mgmt reorg'd
authorJim Warner <james.warner@comcast.net>
Fri, 10 Feb 2012 16:10:10 +0000 (10:10 -0600)
committerCraig Small <csmall@enc.com.au>
Mon, 27 Feb 2012 21:44:59 +0000 (08:44 +1100)
commitccb51440502813c153b777d167cde085074d8a8e
tree17b6ce1ad1762ad06e7dc7fe3839cd08e39b3e17
parent22a56e6bfd67847f1e337a521b69b4644dc3d5e2
top: fix regression created when fields mgmt reorg'd

When the calibrate_fields function was broken up for
mainainability, an obscure regression was introduced.

For the resulting bug to affect the display, all of
the following conditions would have to be met:
 . USE_X_COLHDR was not defined
 . column highlighting had been turned on
 . many, perhaps all, fields were displayable
 . the user then typed the <End> key
 . and the current sort column just happened to
   be immediately to the left of the left-most
   visible field

This patch corrects for that remote possibility.

Reference:
commit d0e16acf156b066d56415b1b7ccbfad4ae1526d8

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