Skip to content

Commit 92fcfe1

Browse files
committed
Check new timer before [MMBackend waitForInput:]
1 parent 1f7e0c9 commit 92fcfe1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/MacVim/gui_macvim.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,16 @@
431431
[[MMBackend sharedInstance] flushQueue:YES];
432432

433433
#ifdef MESSAGE_QUEUE
434+
# ifdef FEAT_TIMERS
435+
did_add_timer = FALSE;
436+
# endif
437+
434438
parse_queued_messages();
439+
440+
# ifdef FEAT_TIMERS
441+
if (did_add_timer)
442+
wtime = 0;
443+
# endif
435444
#endif
436445

437446
return [[MMBackend sharedInstance] waitForInput:wtime];

0 commit comments

Comments
 (0)