diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-11 08:09:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 08:09:13 +0800 |
commit | 9d306ac6b79c13b5f42ea4e22c6f8ccc628f6a6a (patch) | |
tree | 2913703cd2da4908e60e7fe59a88957ef274076a /src/nvim/ex_cmds.c | |
parent | ac1aee99bc76c0036aa0ccf7b9eda48fcf46ac11 (diff) | |
download | rneovim-9d306ac6b79c13b5f42ea4e22c6f8ccc628f6a6a.tar.gz rneovim-9d306ac6b79c13b5f42ea4e22c6f8ccc628f6a6a.tar.bz2 rneovim-9d306ac6b79c13b5f42ea4e22c6f8ccc628f6a6a.zip |
vim-patch:9.0.1538: :wqall does not trigger ExitPre (#23574)
Problem: :wqall does not trigger ExitPre. (Bart Libert)
Solution: Move preparations for :qall to a common function. (closes vim/vim#12374)
https://github.com/vim/vim/commit/411da64e77ef9d8edd1a5aa80fa5b9a4b159c93d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index dbfd1088d2..9a8dc9899c 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1926,6 +1926,9 @@ void 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; } |