aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-11-08 12:16:45 -0600
committerGitHub <noreply@github.com>2023-11-08 12:16:45 -0600
commitbb7324292cda2354511d3332aecb0b9748021764 (patch)
tree69b6aff0d68289667015e39e475bbb0d790810d2 /src/nvim/lua/executor.c
parent08847a9ea15a50aba041ee621d71b9884f5fea97 (diff)
downloadrneovim-bb7324292cda2354511d3332aecb0b9748021764.tar.gz
rneovim-bb7324292cda2354511d3332aecb0b9748021764.tar.bz2
rneovim-bb7324292cda2354511d3332aecb0b9748021764.zip
fix: flush UI state before blocking in vim.wait (#25938)
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 36cb8a6756..3333c73bfd 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -463,6 +463,9 @@ static int nlua_wait(lua_State *lstate)
int pcall_status = 0;
bool callback_result = false;
+ // Flush UI before blocking
+ ui_flush();
+
LOOP_PROCESS_EVENTS_UNTIL(&main_loop,
loop_events,
(int)timeout,