diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-05 06:48:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-05 06:48:56 +0800 |
commit | 4317d366691b057ffba4504c1167128a66e4e5c8 (patch) | |
tree | 3e779417963c83e37c8edc80f87544d7ef504fd1 /src/nvim/getchar.c | |
parent | e4a58a7ca03457668492f8f41189ea2f23700172 (diff) | |
download | rneovim-4317d366691b057ffba4504c1167128a66e4e5c8.tar.gz rneovim-4317d366691b057ffba4504c1167128a66e4e5c8.tar.bz2 rneovim-4317d366691b057ffba4504c1167128a66e4e5c8.zip |
fix(event-loop): process input before events in getchar() (#32322)
Follow-up to #27358.
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 5bf89ee5a8..0817d40bb8 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1932,7 +1932,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv, bool allow_number // Flush screen updates before blocking. ui_flush(); input_get(NULL, 0, -1, typebuf.tb_change_cnt, main_loop.events); - if (!multiqueue_empty(main_loop.events)) { + if (!input_available() && !multiqueue_empty(main_loop.events)) { state_handle_k_event(); continue; } |