1
0
forked from aniani/vim

patch 8.0.0851: 'smartindent' is used even when 'indentexpr' is set

Problem:    'smartindent' is used even when 'indentexpr' is set.
Solution:   Ignore 'smartindent' when 'indentexpr' is set. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2017-08-03 17:54:03 +02:00
parent 01efafad12
commit 69a76feda9
3 changed files with 32 additions and 0 deletions

View File

@@ -626,6 +626,9 @@ open_line(
int do_si = (!p_paste && curbuf->b_p_si
# ifdef FEAT_CINDENT
&& !curbuf->b_p_cin
# endif
# ifdef FEAT_EVAL
&& *curbuf->b_p_inde == NUL
# endif
);
int no_si = FALSE; /* reset did_si afterwards */