aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-19 15:22:34 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-19 21:22:34 +0200
commit3cc7462a0cc035c6e97896c12819549ce5e31b10 (patch)
tree1adcb054885070f54d9043a031aa091d196214b8 /src/nvim/option.c
parent74d19f685faf1ee2e96ddc54ae289ed5093f4e08 (diff)
downloadrneovim-3cc7462a0cc035c6e97896c12819549ce5e31b10.tar.gz
rneovim-3cc7462a0cc035c6e97896c12819549ce5e31b10.tar.bz2
rneovim-3cc7462a0cc035c6e97896c12819549ce5e31b10.zip
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) https://github.com/vim/vim/commit/3bab93998d01a01b7f2a071fa3b8054bb0094625
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 0851e6cc5f..68b0a525f1 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5811,7 +5811,7 @@ void 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;
buf->b_p_cpt = vim_strsave(p_cpt);
buf->b_p_cfu = vim_strsave(p_cfu);
buf->b_p_ofu = vim_strsave(p_ofu);