# HG changeset patch # User Bram Moolenaar # Date 1404930043 -7200 # Node ID 7fa2bed947fde3514a700c96861a537d816d6fd4 # Parent b43ce6bb5d79f5fa71a6b8ba27ae48e52935a4e6 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. diff --git a/src/screen.c b/src/screen.c --- 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); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 362, +/**/ 361, /**/ 360,