summaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-19 15:51:44 +0000
committerBram Moolenaar <Bram@vim.org>2022-12-19 15:51:44 +0000
commit07146ad1d33ba0d36b324873e5c461931e6b025e (patch)
treed083992f49a6805bcf03d7c7e5c4f7ae7e33893c /src/indent.c
parent4ce1f99a2d58b809ab5a5c602bd031426f8527e8 (diff)
patch 9.0.1078: with the +vartabs feature indent folding may use wrong 'ts'v9.0.1078
Problem: With the +vartabs feature indent folding may use wrong 'tabstop'. Solution: Use the "buf" argument instead of "curbuf".
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index aaf3caafc4..cbb3f94f4b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -420,7 +420,7 @@ get_indent_buf(buf_T *buf, linenr_T lnum)
{
# ifdef FEAT_VARTABS
return get_indent_str_vtab(ml_get_buf(buf, lnum, FALSE),
- (int)curbuf->b_p_ts, buf->b_p_vts_array, FALSE);
+ (int)buf->b_p_ts, buf->b_p_vts_array, FALSE);
# else
return get_indent_str(ml_get_buf(buf, lnum, FALSE), (int)buf->b_p_ts, FALSE);
# endif