patch 8.0.1169: highlignting one char too many with 'list' and 'cul'
Problem: Highlignting one char too many with 'list' and 'cul'.
Solution: Check for 'list' being active. (Ozaki Kiichi, closes #2177)
diff --git a/src/screen.c b/src/screen.c
index 8349e5f..3e08b60 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4169,7 +4169,8 @@
cur = cur->next;
}
/* Only highlight one character after the last column. */
- if (*ptr == NUL && did_line_attr >= 1)
+ if (*ptr == NUL && (did_line_attr >= 1
+ || (wp->w_p_list && lcs_eol_one == -1)))
search_attr = 0;
}
#endif