summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-05-10 16:53:27 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-10 16:53:27 +0100
commit411da64e77ef9d8edd1a5aa80fa5b9a4b159c93d (patch)
tree7843dd7517bea3b58977b700fe2e6cdb646ed76b /src/ex_cmds.c
parent65b34868dac4bdc99e1144e36d5315b569795fc4 (diff)
patch 9.0.1538: :wqall does not trigger ExitPrev9.0.1538
Problem: :wqall does not trigger ExitPre. (Bart Libert) Solution: Move preparations for :qall to a common function. (closes #12374)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 085467e583..0fd6d10f71 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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)
{