mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.4951: smart indenting done when not enabled
Problem: Smart indenting done when not enabled. Solution: Check option values before setting can_si. (closes #10420)
This commit is contained in:
@@ -1392,14 +1392,7 @@ open_line(
|
||||
int do_cindent;
|
||||
#endif
|
||||
#ifdef FEAT_SMARTINDENT
|
||||
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 do_si = may_do_si();
|
||||
int no_si = FALSE; // reset did_si afterwards
|
||||
int first_char = NUL; // init for GCC
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user