diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-14 11:52:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-14 11:52:23 +0100 |
commit | de5cf287812510d2c8ffe66b99cf33c4e1a6e6f1 (patch) | |
tree | 1da7638f0773297167182c800faa03b20f7acdb3 /src/change.c | |
parent | 4b93674159d60c985de906c30f45dbaf2b64056f (diff) |
patch 8.2.4951: smart indenting done when not enabledv8.2.4951
Problem: Smart indenting done when not enabled.
Solution: Check option values before setting can_si. (closes #10420)
Diffstat (limited to 'src/change.c')
-rw-r--r-- | src/change.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/change.c b/src/change.c index 8ba0a54f4a..b7618c5ba8 100644 --- a/src/change.c +++ b/src/change.c @@ -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 |