mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
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".
07146ad1d3
This commit is contained in:
@@ -378,7 +378,7 @@ int get_indent_lnum(linenr_T lnum)
|
||||
int get_indent_buf(buf_T *buf, linenr_T lnum)
|
||||
{
|
||||
return get_indent_str_vtab(ml_get_buf(buf, lnum, false),
|
||||
curbuf->b_p_ts,
|
||||
buf->b_p_ts,
|
||||
buf->b_p_vts_array,
|
||||
false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user