diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-18 11:37:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 11:37:22 +0200 |
commit | e63538f21c90112faafc65ae12766d1f9abd5bc0 (patch) | |
tree | f211af5f1926cb1fdde6083f2b51a52241c19967 /src/nvim/state.c | |
parent | 6d557e324fd4223fff3279a0112f40431c540163 (diff) | |
parent | 644a3f48b117abd1d0d0aab5ec96cd62392ca0f1 (diff) | |
download | rneovim-e63538f21c90112faafc65ae12766d1f9abd5bc0.tar.gz rneovim-e63538f21c90112faafc65ae12766d1f9abd5bc0.tar.bz2 rneovim-e63538f21c90112faafc65ae12766d1f9abd5bc0.zip |
Merge pull request #20198 from zeertzjq/cursorhold
fix(events): make CursorHold behave as documented
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r-- | src/nvim/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c index 458eed960f..8b07c484e6 100644 --- a/src/nvim/state.c +++ b/src/nvim/state.c @@ -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; |