aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-03-02 13:56:27 +0100
committerGitHub <noreply@github.com>2020-03-02 13:56:27 +0100
commitd22fd58629c6aa93d808d74a7e6dee79e3246ae0 (patch)
treecda0f3a59a076bae4c1cf4f6e51328eee560cf1e /src/nvim/ex_cmds.c
parente35ff7371f4a61621587744a7620200380abbbe9 (diff)
parent6f261d23942feb22e5aa2881bc645bce5c5ce946 (diff)
downloadrneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.gz
rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.tar.bz2
rneovim-d22fd58629c6aa93d808d74a7e6dee79e3246ae0.zip
Merge pull request #11716 from teto/folds_auto_backup
[RFC] foldcolumn autowidth
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index ba66b666e0..a2c4435014 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4482,8 +4482,9 @@ prepare_tagpreview (
curwin->w_p_wfh = TRUE;
RESET_BINDING(curwin); /* don't take over 'scrollbind'
and 'cursorbind' */
- curwin->w_p_diff = FALSE; /* no 'diff' */
- curwin->w_p_fdc = 0; /* no 'foldcolumn' */
+ curwin->w_p_diff = false; // no 'diff'
+ set_string_option_direct((char_u *)"fdc", -1, // no 'foldcolumn'
+ (char_u *)"0", OPT_FREE, SID_NONE);
return true;
}
}