Skip to content

Commit 1ed1ccc

Browse files
committed
Fix feedkeys in timer callback
1 parent 1de54de commit 1ed1ccc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/MacVim/gui_macvim.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,19 @@
407407
[[MMBackend sharedInstance] flushQueue:YES];
408408

409409
#ifdef MESSAGE_QUEUE
410+
# ifdef FEAT_TIMERS
411+
did_add_timer = FALSE;
412+
# endif
410413
parse_queued_messages();
414+
# ifdef FEAT_TIMERS
415+
if (did_add_timer)
416+
return FAIL;
417+
# endif
411418
#endif
412419

420+
if (input_available())
421+
return OK;
422+
413423
return [[MMBackend sharedInstance] waitForInput:wtime];
414424
}
415425

0 commit comments

Comments
 (0)