commit bb7324292cda2354511d3332aecb0b9748021764
parent 08847a9ea15a50aba041ee621d71b9884f5fea97
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date: Wed, 8 Nov 2023 12:16:45 -0600
fix: flush UI state before blocking in vim.wait (#25938)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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,