diff src/screen.c @ 6815:f0e7dc5e7282 v7.4.729

patch 7.4.729 Problem: Occasional crash with 'list' set. Solution: Fix off-by-one error. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 14 May 2015 05:56:09 +0200
parents 47ebd4065059
children 8730db0c187b
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -4715,7 +4715,7 @@ win_line(wp, lnum, startrow, endrow, noc
 				&& !(noinvcur
 				    && lnum == wp->w_cursor.lnum
 				    && (colnr_T)vcol == wp->w_virtcol)))
-			&& lcs_eol_one >= 0)
+			&& lcs_eol_one > 0)
 		{
 		    /* Display a '$' after the line or highlight an extra
 		     * character if the line break is included. */