1
0
forked from aniani/vim

patch 9.0.1078: with the +vartabs feature indent folding may use wrong 'ts'

Problem:    With the +vartabs feature indent folding may use wrong 'tabstop'.
Solution:   Use the "buf" argument instead of "curbuf".
This commit is contained in:
zeertzjq
2022-12-19 15:51:44 +00:00
committed by Bram Moolenaar
parent 4ce1f99a2d
commit 07146ad1d3
3 changed files with 24 additions and 1 deletions

View File

@@ -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