mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-05 10:57:07 +03:00
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,7 +202,8 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ch == ERR) {
|
if (ch == ERR) {
|
||||||
sortTimeout--;
|
if (sortTimeout > 0)
|
||||||
|
sortTimeout--;
|
||||||
if (prevCh == ch && !timedOut) {
|
if (prevCh == ch && !timedOut) {
|
||||||
closeTimeout++;
|
closeTimeout++;
|
||||||
if (closeTimeout == 100) {
|
if (closeTimeout == 100) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user