mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #2860. Application views do not refresh when the cursor is moved with CursesDriver.
This commit is contained in:
@@ -175,6 +175,10 @@ namespace Terminal.Gui {
|
||||
if (mainLoop.timeouts.Count > 0) {
|
||||
pollTimeout = (int)((mainLoop.timeouts.Keys [0] - now) / TimeSpan.TicksPerMillisecond);
|
||||
if (pollTimeout < 0) {
|
||||
// This avoids poll waiting infinitely if pollTimeout=-1 until some action is detected
|
||||
if (pollTimeout == -1) {
|
||||
pollTimeout = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user