diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-14 19:49:55 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-17 21:48:44 +0800 |
commit | 644a3f48b117abd1d0d0aab5ec96cd62392ca0f1 (patch) | |
tree | 0b15f58a19574d34ba97d455e09b3afc94b35bb7 /src/nvim/state.c | |
parent | 3c3f3e7353ba2cb9071183cd05036ca2a98d3672 (diff) | |
download | rneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.tar.gz rneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.tar.bz2 rneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.zip |
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; |