On 6 Aug 2016, at 20:49, Jacob Carlborg wrote:
If I type "f" and then invoke the command the completion menu appears as expected, containing "foo". If I type a non-matching character, like "s" then it takes around three seconds for the menu to disappear and the "s" to appear in the editor.
100% reproducible? Not seeing it myself, neither with your code or the Objective-C completion.
Not sure if it's related, but if I select some other text in the meantime the "s" appears immediately.
What if you just move the mouse?
There are some edge cases where the event loop does not automatically wake up even though there is a pending event, here moving the mouse would wake the event loop.