Mercurial > vim
comparison src/ex_cmds.c @ 32413:edef053f7090 v9.0.1538
patch 9.0.1538: :wqall does not trigger ExitPre
Commit: https://github.com/vim/vim/commit/411da64e77ef9d8edd1a5aa80fa5b9a4b159c93d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 10 16:53:27 2023 +0100
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 https://github.com/vim/vim/issues/12374)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 May 2023 18:00:06 +0200 |
parents | bea4ebf594c6 |
children | 87f59a64efab |
comparison
equal
deleted
inserted
replaced
32412:1c735cb266e0 | 32413:edef053f7090 |
---|---|
2267 buf_T *buf; | 2267 buf_T *buf; |
2268 int error = 0; | 2268 int error = 0; |
2269 int save_forceit = eap->forceit; | 2269 int save_forceit = eap->forceit; |
2270 | 2270 |
2271 if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall) | 2271 if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall) |
2272 { | |
2273 if (before_quit_all(eap) == FAIL) | |
2274 return; | |
2272 exiting = TRUE; | 2275 exiting = TRUE; |
2276 } | |
2273 | 2277 |
2274 FOR_ALL_BUFFERS(buf) | 2278 FOR_ALL_BUFFERS(buf) |
2275 { | 2279 { |
2276 #ifdef FEAT_TERMINAL | 2280 #ifdef FEAT_TERMINAL |
2277 if (exiting && term_job_running(buf->b_term)) | 2281 if (exiting && term_job_running(buf->b_term)) |