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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user