aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-14 19:49:55 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-17 21:48:44 +0800
commit644a3f48b117abd1d0d0aab5ec96cd62392ca0f1 (patch)
tree0b15f58a19574d34ba97d455e09b3afc94b35bb7 /src/nvim/getchar.c
parent3c3f3e7353ba2cb9071183cd05036ca2a98d3672 (diff)
downloadrneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.tar.gz
rneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.tar.bz2
rneovim-644a3f48b117abd1d0d0aab5ec96cd62392ca0f1.zip
fix(events): make CursorHold behave as documented
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index c93810df8d..fd0acce25f 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1666,7 +1666,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv)
if (!char_avail()) {
// flush output before waiting
ui_flush();
- (void)os_inchar(NULL, 0, -1, 0, main_loop.events);
+ (void)os_inchar(NULL, 0, -1, typebuf.tb_change_cnt, main_loop.events);
if (!multiqueue_empty(main_loop.events)) {
state_handle_k_event();
continue;