Merge pull request #749 from ichizok/fix/timer-check

Fix timer handling
This commit is contained in:
Kazuki Sakamoto
2018-09-22 00:56:03 -07:00
committed by GitHub
+9
View File
@@ -431,7 +431,16 @@ gui_mch_wait_for_chars(int wtime)
[[MMBackend sharedInstance] flushQueue:YES];
#ifdef MESSAGE_QUEUE
# ifdef FEAT_TIMERS
did_add_timer = FALSE;
# endif
parse_queued_messages();
# ifdef FEAT_TIMERS
if (did_add_timer)
wtime = 0;
# endif
#endif
return [[MMBackend sharedInstance] waitForInput:wtime];