0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-10-01 14:35:02 +02:00
parent 0aa398f55a
commit 5ece3e359c
3 changed files with 31 additions and 2 deletions

View File

@@ -4169,7 +4169,8 @@ win_line(
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