vim-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 vim/vim#2177)
5ece3e359c
This commit is contained in:
Jan Edmund Lazo
2018-07-14 14:03:29 -04:00
parent a920ae89e9
commit 11bd0b8870
2 changed files with 30 additions and 2 deletions

View File

@@ -3027,7 +3027,9 @@ 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;
}
}