commit | de5cf287812510d2c8ffe66b99cf33c4e1a6e6f1 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat May 14 11:52:23 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat May 14 11:52:23 2022 +0100 |
tree | 1da7638f0773297167182c800faa03b20f7acdb3 | |
parent | 4b93674159d60c985de906c30f45dbaf2b64056f [diff] [blame] |
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)
diff --git a/src/edit.c b/src/edit.c index 3da3db6..5b06131 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -1295,7 +1295,7 @@ #endif compl_busy = FALSE; #ifdef FEAT_SMARTINDENT - can_si = TRUE; // allow smartindenting + can_si = may_do_si(); // allow smartindenting #endif break;