diff src/screen.c @ 6045:7fa2bed947fd v7.4.362

updated for version 7.4.362 Problem: When matchaddpos() uses a length smaller than the number of bytes in the (last) character the highlight continues until the end of the line. Solution: Change condition from equal to larger-or-equal.
author Bram Moolenaar <bram@vim.org>
date Wed, 09 Jul 2014 20:20:43 +0200
parents 5deaa4e9812d
children d44f298c43c7
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -3852,7 +3852,7 @@ win_line(wp, lnum, startrow, endrow, noc
 			{
 			    shl->attr_cur = shl->attr;
 			}
-			else if (v == (long)shl->endcol)
+			else if (v >= (long)shl->endcol)
 			{
 			    shl->attr_cur = 0;
 			    next_search_hl(wp, shl, lnum, (colnr_T)v, cur);