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:
Daniel Lange 2021-02-01 16:02:31 +01:00
parent 3808b3b553
commit 12f5f06e88
1 changed files with 2 additions and 1 deletions

View File

@ -202,6 +202,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
}
}
if (ch == ERR) {
if (sortTimeout > 0)
sortTimeout--;
if (prevCh == ch && !timedOut) {
closeTimeout++;