mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix: flush UI state before blocking in vim.wait (#25938)
This commit is contained in:
@@ -463,6 +463,9 @@ static int nlua_wait(lua_State *lstate)
|
|||||||
int pcall_status = 0;
|
int pcall_status = 0;
|
||||||
bool callback_result = false;
|
bool callback_result = false;
|
||||||
|
|
||||||
|
// Flush UI before blocking
|
||||||
|
ui_flush();
|
||||||
|
|
||||||
LOOP_PROCESS_EVENTS_UNTIL(&main_loop,
|
LOOP_PROCESS_EVENTS_UNTIL(&main_loop,
|
||||||
loop_events,
|
loop_events,
|
||||||
(int)timeout,
|
(int)timeout,
|
||||||
|
Reference in New Issue
Block a user