commit | 411da64e77ef9d8edd1a5aa80fa5b9a4b159c93d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed May 10 16:53:27 2023 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed May 10 16:53:27 2023 +0100 |
tree | 7843dd7517bea3b58977b700fe2e6cdb646ed76b | |
parent | 65b34868dac4bdc99e1144e36d5315b569795fc4 [diff] [blame] |
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)
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 085467e..0fd6d10 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -2269,7 +2269,11 @@ 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) {