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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user