aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-30 01:26:33 +0200
committerGitHub <noreply@github.com>2019-04-30 01:26:33 +0200
commit63526f2eeee774c657270a1ec0cbd788480f14b7 (patch)
treebacf8807780792b4a8dfaf0480f80e91cf4fe35e /src/nvim/main.c
parenta0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c (diff)
parentaac731c22b94117aea2257d4f19fd1f0930a2385 (diff)
downloadrneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.tar.gz
rneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.tar.bz2
rneovim-63526f2eeee774c657270a1ec0cbd788480f14b7.zip
Merge #9956 from justinmk/vim-8.1.1231
vim-patch:8.1.1231, swap-related patches
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 27e2abe1ad..4e1c7dff57 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -1520,10 +1520,11 @@ static void create_windows(mparm_T *parmp)
dorewind = FALSE;
curbuf = curwin->w_buffer;
if (curbuf->b_ml.ml_mfp == NULL) {
- /* Set 'foldlevel' to 'foldlevelstart' if it's not negative. */
- if (p_fdls >= 0)
+ // Set 'foldlevel' to 'foldlevelstart' if it's not negative..
+ if (p_fdls >= 0) {
curwin->w_p_fdl = p_fdls;
- /* When getting the ATTENTION prompt here, use a dialog */
+ }
+ // When getting the ATTENTION prompt here, use a dialog.
swap_exists_action = SEA_DIALOG;
set_buflisted(TRUE);