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/edit.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/edit.c')
-rw-r--r-- | src/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 3da3db67b7..5b06131f96 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1295,7 +1295,7 @@ docomplete: #endif compl_busy = FALSE; #ifdef FEAT_SMARTINDENT - can_si = TRUE; // allow smartindenting + can_si = may_do_si(); // allow smartindenting #endif break; |