0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.2898: QuitPre and ExitPre not triggered when GUI window is closed

Problem:    QuitPre and ExitPre not triggered when GUI window is closed.
Solution:   Call before_quit_autocmds(). (closes #8242)
This commit is contained in:
Bram Moolenaar
2021-05-29 12:21:58 +02:00
parent d0edaf9dc2
commit 3552e74289
4 changed files with 9 additions and 5 deletions

View File

@@ -857,9 +857,10 @@ gui_exit(int rc)
void
gui_shell_closed(void)
{
cmdmod_T save_cmdmod;
cmdmod_T save_cmdmod = cmdmod;
save_cmdmod = cmdmod;
if (before_quit_autocmds(curwin, TRUE, FALSE))
return;
// Only exit when there are no changed files
exiting = TRUE;