0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1538: :wqall does not trigger ExitPre

Problem:    :wqall does not trigger ExitPre. (Bart Libert)
Solution:   Move preparations for :qall to a common function. (closes #12374)
This commit is contained in:
Bram Moolenaar
2023-05-10 16:53:27 +01:00
parent 65b34868da
commit 411da64e77
5 changed files with 37 additions and 6 deletions

View File

@@ -2269,7 +2269,11 @@ do_wqall(exarg_T *eap)
int save_forceit = eap->forceit;
if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall)
{
if (before_quit_all(eap) == FAIL)
return;
exiting = TRUE;
}
FOR_ALL_BUFFERS(buf)
{