diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-10 15:24:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 15:24:36 +0800 |
commit | d5a85d737aa2a5c3a64ef0aa5b01672b7ed49c09 (patch) | |
tree | d3ade990979b1c8f0ad3890fc8a6eb5b90848f68 /src/nvim/getchar.c | |
parent | bf5cf8ae82f2a164fba6ae063e0f5b7cb7c1df7b (diff) | |
download | rneovim-d5a85d737aa2a5c3a64ef0aa5b01672b7ed49c09.tar.gz rneovim-d5a85d737aa2a5c3a64ef0aa5b01672b7ed49c09.tar.bz2 rneovim-d5a85d737aa2a5c3a64ef0aa5b01672b7ed49c09.zip |
fix(f_wait): flush UI before blocking (#25962)
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 8b1e2f9105..2370df916c 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1723,7 +1723,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv) // getchar(): blocking wait. // TODO(bfredl): deduplicate shared logic with state_enter ? if (!char_avail()) { - // flush output before waiting + // Flush screen updates before blocking. ui_flush(); (void)os_inchar(NULL, 0, -1, typebuf.tb_change_cnt, main_loop.events); if (!multiqueue_empty(main_loop.events)) { |