fix(events): trigger VimResume on next UI request (#24426)

This commit is contained in:
zeertzjq
2023-07-23 07:16:41 +08:00
committed by GitHub
parent ad95b36985
commit a8cfdf43bc
6 changed files with 94 additions and 33 deletions

View File

@@ -4874,12 +4874,9 @@ static void ex_stop(exarg_T *eap)
if (!eap->forceit) {
autowrite_all();
}
apply_autocmds(EVENT_VIMSUSPEND, NULL, NULL, false, NULL);
may_trigger_vim_suspend_resume(true);
ui_call_suspend();
ui_flush();
apply_autocmds(EVENT_VIMRESUME, NULL, NULL, false, NULL);
}
/// ":exit", ":xit" and ":wq": Write file and quit the current window.