diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-29 09:53:33 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-29 09:59:20 -0400 |
commit | 30a34136b6d81b795eeb0ee435d410fc74da9639 (patch) | |
tree | f2ce35083eac241d75d1d652cb12f6b2620b7402 | |
parent | 43956dea55a49a847a0f2e5d9e0f48384cb34635 (diff) | |
download | rneovim-30a34136b6d81b795eeb0ee435d410fc74da9639.tar.gz rneovim-30a34136b6d81b795eeb0ee435d410fc74da9639.tar.bz2 rneovim-30a34136b6d81b795eeb0ee435d410fc74da9639.zip |
vim-patch:8.2.2898: QuitPre and ExitPre not triggered when GUI window is closed
Problem: QuitPre and ExitPre not triggered when GUI window is closed.
Solution: Call before_quit_autocmds(). (closes vim/vim#8242)
https://github.com/vim/vim/commit/3552e742898cd57adaf9b8ce32a9056271eab8d2
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index c93f9fe6f2..92ed4b047c 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6340,7 +6340,7 @@ void not_exiting(void) exiting = false; } -static bool before_quit_autocmds(win_T *wp, bool quit_all, int forceit) +bool before_quit_autocmds(win_T *wp, bool quit_all, int forceit) { apply_autocmds(EVENT_QUITPRE, NULL, NULL, false, wp->w_buffer); @@ -6406,7 +6406,7 @@ static void ex_quit(exarg_T *eap) return; } - // If there are more files or windows we won't exit. + // If there is only one relevant window we will exit. if (check_more(false, eap->forceit) == OK && only_one_window()) { exiting = true; } |