top: fix an improper behavior following a SIGWINCH bug

When top was made more responsive to keyboard input in
that commit referenced below, his previous response to
a SIGWINCH was upset. Formerly, that display integrity
was restored with the next refresh cycle. But, without
this patch, one must strike some key to accomplish it.

[ in truth, this patch vastly improves that sigwinch ]
[ response. whereas before, although integrity would ]
[ be restored automatically, it did not happen until ]
[ the next regular refresh. now it is instantaneous! ]

Reference(s):
. May, 2022 - made more responsive to kdb input
commit 3ea1bc779f

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2022-09-07 00:00:00 -05:00 committed by Craig Small
parent 046883b9d3
commit 9d9993708b
1 changed files with 1 additions and 1 deletions

View File

@ -7176,7 +7176,7 @@ int main (int argc, char *argv[]) {
if (0 < Loops) --Loops;
if (!Loops) bye_bye(NULL);
if (Frames_signal) { Frames_signal = BREAK_off; continue; }
if (Frames_signal) { Frames_signal = BREAK_off; zap_fieldstab(); continue; }
ts.tv_sec = Rc.delay_time;
ts.tv_nsec = (Rc.delay_time - (int)Rc.delay_time) * 1000000000;