1
0
forked from aniani/vim

patch 8.0.0546: swap file exists briefly when opening the command window

Problem:    Swap file exists briefly when opening the command window.
Solution:   Set the noswapfile command modifier before splitting the window.
            (James McCoy, closes #1620)
This commit is contained in:
Bram Moolenaar
2017-04-07 15:42:25 +02:00
parent 15ecbd6f3d
commit 3bab93998d
3 changed files with 8 additions and 6 deletions

View File

@@ -11058,7 +11058,7 @@ buf_copy_options(buf_T *buf, int flags)
buf->b_p_ml = p_ml;
buf->b_p_ml_nobin = p_ml_nobin;
buf->b_p_inf = p_inf;
buf->b_p_swf = p_swf;
buf->b_p_swf = cmdmod.noswapfile ? FALSE : p_swf;
#ifdef FEAT_INS_EXPAND
buf->b_p_cpt = vim_strsave(p_cpt);
#endif