top: fix a minor startup flaw for the '2 abreast' mode
This ensures that a single '4' keystroke will reliably toggle the new 2 abreast mode ON. Depending on whether an older configuration file existed or whether top was configured with '--disable-modern-top', keying the '4' for a second time might otherwise have been necessary. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
f73d8d180f
commit
f0fb35b645
@ -4690,6 +4690,8 @@ static void wins_stage_2 (void) {
|
|||||||
Winstk[i].findlen = 0;
|
Winstk[i].findlen = 0;
|
||||||
if (Winstk[i].rc.combine_cpus >= smp_num_cpus)
|
if (Winstk[i].rc.combine_cpus >= smp_num_cpus)
|
||||||
Winstk[i].rc.combine_cpus = 0;
|
Winstk[i].rc.combine_cpus = 0;
|
||||||
|
if (CHKw(&Winstk[i], (View_CPUSUM | View_CPUNOD)))
|
||||||
|
Winstk[i].rc.double_up = 0;
|
||||||
}
|
}
|
||||||
if (!Batch)
|
if (!Batch)
|
||||||
putp((Cursor_state = Cap_curs_hide));
|
putp((Cursor_state = Cap_curs_hide));
|
||||||
|
Loading…
Reference in New Issue
Block a user