summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2022-04-07 21:00:53 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-07 21:00:53 +0100
commitac72c21da696cf6c31630a9e5ff4c0d3e2049c11 (patch)
tree77e3a365158f60d4764db59d54ca20d42a07d922 /src/edit.c
parent5017c66bd461eab46094e076ad1aa818e246ce9d (diff)
patch 8.2.4710: smart indenting does not work after completionv8.2.4710
Problem: Smart indenting does not work after completion. Solution: Set "can_si". (Christian Brabandt, closes #10113, closes #558)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 53e86ff18f..f30edd5c79 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1293,6 +1293,9 @@ docomplete:
disable_fold_update--;
#endif
compl_busy = FALSE;
+#ifdef FEAT_SMARTINDENT
+ can_si = TRUE; // allow smartindenting
+#endif
break;
case Ctrl_Y: // copy from previous line or scroll down