diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-07 15:42:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-07 15:42:25 +0200 |
commit | 3bab93998d01a01b7f2a071fa3b8054bb0094625 (patch) | |
tree | baa7c91b4ac194d42ae6c3e7213b2b993f4d03cc /src/option.c | |
parent | 15ecbd6f3d39ff04862999a577962ef9369a9e53 (diff) | |
download | vim-git-3bab93998d01a01b7f2a071fa3b8054bb0094625.tar.gz |
patch 8.0.0546: swap file exists briefly when opening the command windowv8.0.0546
Problem: Swap file exists briefly when opening the command window.
Solution: Set the noswapfile command modifier before splitting the window.
(James McCoy, closes #1620)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index c40454844..d4f72755d 100644 --- a/src/option.c +++ b/src/option.c @@ -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 |