summaryrefslogtreecommitdiff
path: root/src/indent.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-15 20:38:25 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-15 20:38:25 +0100
commiteed9d46293f0842aad0d50ff3a526f9a48b12421 (patch)
treeef3730ca3c0a7ede44fade0ea638975f43a65d5f /src/indent.c
parent7c5b3c03699a4ab31f47c24290852d441ea8c12a (diff)
downloadvim-git-eed9d46293f0842aad0d50ff3a526f9a48b12421.tar.gz
patch 8.2.2518: 'listchars' should be window-localv8.2.2518
Problem: 'listchars' should be window-local. Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz, closes #5206, closes #7850)
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index 6ac6182df..e1c6f522a 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -432,7 +432,8 @@ get_indent_str(
{
if (*ptr == TAB)
{
- if (!list || lcs_tab1) // count a tab for what it is worth
+ if (!list || curwin->w_lcs_chars.tab1)
+ // count a tab for what it is worth
count += ts - (count % ts);
else
// In list mode, when tab is not set, count screen char width
@@ -462,7 +463,7 @@ get_indent_str_vtab(char_u *ptr, int ts, int *vts, int list)
{
if (*ptr == TAB) // count a tab for what it is worth
{
- if (!list || lcs_tab1)
+ if (!list || curwin->w_lcs_chars.tab1)
count += tabstop_padding(count, ts, vts);
else
// In list mode, when tab is not set, count screen char width