mirror of https://github.com/xzeldon/htop.git
Check for sortTimeout to not run towards -inf
Seems to happen on Mac OS "Big Sur" (~forced application sleep) Partial fix for #510
This commit is contained in:
parent
3808b3b553
commit
12f5f06e88
|
@ -202,6 +202,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ch == ERR) {
|
if (ch == ERR) {
|
||||||
|
if (sortTimeout > 0)
|
||||||
sortTimeout--;
|
sortTimeout--;
|
||||||
if (prevCh == ch && !timedOut) {
|
if (prevCh == ch && !timedOut) {
|
||||||
closeTimeout++;
|
closeTimeout++;
|
||||||
|
|
Loading…
Reference in New Issue