mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -1718,12 +1718,7 @@ op_change(oparg_T *oap)
|
||||
{
|
||||
l = 0;
|
||||
#ifdef FEAT_SMARTINDENT
|
||||
if (!p_paste && curbuf->b_p_si
|
||||
# ifdef FEAT_CINDENT
|
||||
&& !curbuf->b_p_cin
|
||||
# endif
|
||||
)
|
||||
can_si = TRUE; // It's like opening a new line, do si
|
||||
can_si = may_do_si(); // Like opening a new line, do smart indent
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user