aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-22 07:52:11 +0800
committerGitHub <noreply@github.com>2022-05-22 07:52:11 +0800
commit5193b17839c6524bb72ca35cbfc477c4ddd8ef13 (patch)
tree21e24fa0827db2c647b17b4a2ba9acd4240e3c3d /src/nvim/option.c
parent0c4086faa17db46d27d4743095a8f16709bcf278 (diff)
downloadrneovim-5193b17839c6524bb72ca35cbfc477c4ddd8ef13.tar.gz
rneovim-5193b17839c6524bb72ca35cbfc477c4ddd8ef13.tar.bz2
rneovim-5193b17839c6524bb72ca35cbfc477c4ddd8ef13.zip
vim-patch:8.2.4993: smart/C/lisp indenting is optional (#18684)
Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP. https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 61ac542fcf..7dd7b41328 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -6544,6 +6544,7 @@ void buf_copy_options(buf_T *buf, int flags)
COPY_OPT_SCTX(buf, BV_SI);
buf->b_p_channel = 0;
buf->b_p_ci = p_ci;
+
COPY_OPT_SCTX(buf, BV_CI);
buf->b_p_cin = p_cin;
COPY_OPT_SCTX(buf, BV_CIN);
@@ -6553,6 +6554,7 @@ void buf_copy_options(buf_T *buf, int flags)
COPY_OPT_SCTX(buf, BV_CINO);
buf->b_p_cinsd = vim_strsave(p_cinsd);
COPY_OPT_SCTX(buf, BV_CINSD);
+
// Don't copy 'filetype', it must be detected
buf->b_p_ft = empty_option;
buf->b_p_pi = p_pi;