aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-23 07:16:41 +0800
committerGitHub <noreply@github.com>2023-07-23 07:16:41 +0800
commita8cfdf43bc6226e32679ec59769ea3e48ca26193 (patch)
tree6454018d5d3067dea1d6436037300d2870105ac0 /src/nvim/ex_docmd.c
parentad95b369856969ccb05b3f92b24d7262b4de3d71 (diff)
downloadrneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.tar.gz
rneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.tar.bz2
rneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.zip
fix(events): trigger VimResume on next UI request (#24426)
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 7aea2cda53..f154b5b77f 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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.