patch 8.2.2518: 'listchars' should be window-local
Problem: 'listchars' should be window-local.
Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz,
closes #5206, closes #7850)
diff --git a/src/indent.c b/src/indent.c
index 6ac6182..e1c6f52 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -432,7 +432,8 @@
{
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 @@
{
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