diff options
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/edit.c b/src/edit.c index 1c614333f..5fde388f7 100644 --- a/src/edit.c +++ b/src/edit.c @@ -8899,9 +8899,9 @@ ins_bs(c, mode, inserted_space_p) *inserted_space_p = FALSE; if (p_sta && in_indent) - ts = curbuf->b_p_sw; + ts = (int)get_sw_value(); else - ts = curbuf->b_p_sts; + ts = (int)curbuf->b_p_sts; /* Compute the virtual column where we want to be. Since * 'showbreak' may get in the way, need to get the last column of * the previous character. */ @@ -9589,7 +9589,7 @@ ins_tab() * When nothing special, insert TAB like a normal character */ if (!curbuf->b_p_et - && !(p_sta && ind && curbuf->b_p_ts != curbuf->b_p_sw) + && !(p_sta && ind && curbuf->b_p_ts != get_sw_value()) && curbuf->b_p_sts == 0) return TRUE; @@ -9605,7 +9605,7 @@ ins_tab() AppendToRedobuff((char_u *)"\t"); if (p_sta && ind) /* insert tab in indent, use 'shiftwidth' */ - temp = (int)curbuf->b_p_sw; + temp = (int)get_sw_value(); else if (curbuf->b_p_sts > 0) /* use 'softtabstop' when set */ temp = (int)curbuf->b_p_sts; else /* otherwise use 'tabstop' */ |