fix: flush UI state before blocking in vim.wait (#25938)

This commit is contained in:
Gregory Anders 2023-11-08 12:16:45 -06:00 committed by GitHub
parent 08847a9ea1
commit bb7324292c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,