mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
fix(events): make CursorHold behave as documented
This commit is contained in:
@@ -65,7 +65,7 @@ getkey:
|
||||
// Call `os_inchar` directly to block for events or user input without
|
||||
// consuming anything from `input_buffer`(os/input.c) or calling the
|
||||
// mapping engine.
|
||||
(void)os_inchar(NULL, 0, -1, 0, main_loop.events);
|
||||
(void)os_inchar(NULL, 0, -1, typebuf.tb_change_cnt, main_loop.events);
|
||||
// If an event was put into the queue, we send K_EVENT directly.
|
||||
if (!multiqueue_empty(main_loop.events)) {
|
||||
key = K_EVENT;
|
||||
|
Reference in New Issue
Block a user