Skip to content

Commit f42e75e

Browse files
committed
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.
1 parent 69c9d34 commit f42e75e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/screen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3852,7 +3852,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
38523852
{
38533853
shl->attr_cur = shl->attr;
38543854
}
3855-
else if (v == (long)shl->endcol)
3855+
else if (v >= (long)shl->endcol)
38563856
{
38573857
shl->attr_cur = 0;
38583858
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
362,
737739
/**/
738740
361,
739741
/**/

0 commit comments

Comments
 (0)