1
0
forked from aniani/vim

patch 8.0.1190: unusable after opening new window in BufWritePre event

Problem:    Vim becomes unusable after opening new window in BufWritePre
            event.
Solution:   Call not_exiting(). (Martin Tournoij, closes #2205)
            Also for "2q" when a help window is open.  Add a test.
This commit is contained in:
Bram Moolenaar
2017-10-14 16:06:20 +02:00
parent 6047e2c722
commit 2c33d7bb69
3 changed files with 48 additions and 0 deletions

View File

@@ -7261,6 +7261,7 @@ ex_quit(exarg_T *eap)
*/
if (only_one_window() && (ONE_WINDOW || eap->addr_count == 0))
getout(0);
not_exiting();
#ifdef FEAT_GUI
need_mouse_correct = TRUE;
#endif
@@ -7799,6 +7800,7 @@ ex_exit(exarg_T *eap)
{
if (only_one_window()) /* quit last window, exit Vim */
getout(0);
not_exiting();
# ifdef FEAT_GUI
need_mouse_correct = TRUE;
# endif