vim-patch:8.0.0546: swap file exists briefly when opening the command window (#8588)

Problem:    Swap file exists briefly when opening the command window.
Solution:   Set the noswapfile command modifier before splitting the window.
            (James McCoy, closes vim/vim#1620)
3bab93998d
This commit is contained in:
Jan Edmund Lazo
2018-06-19 15:22:34 -04:00
committed by Justin M. Keyes
parent 74d19f685f
commit 3cc7462a0c
3 changed files with 9 additions and 7 deletions

View File

@@ -6033,10 +6033,11 @@ static void ex_cquit(exarg_T *eap)
static void ex_quit_all(exarg_T *eap)
{
if (cmdwin_type != 0) {
if (eap->forceit)
cmdwin_result = K_XF1; /* ex_window() takes care of this */
else
if (eap->forceit) {
cmdwin_result = K_XF1; // open_cmdwin() takes care of this
} else {
cmdwin_result = K_XF2;
}
return;
}