diff src/screen.c @ 12582:97f0c74976c6 v8.0.1169

patch 8.0.1169: highlignting one char too many with 'list' and 'cul' commit https://github.com/vim/vim/commit/5ece3e359c4b96d0f9bf1ce690223545f40f34b8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 1 14:35:02 2017 +0200 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 https://github.com/vim/vim/issues/2177)
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Oct 2017 14:45:04 +0200
parents ba55861aa52c
children 4e846c9d61a8
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -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