0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2014-07-09 20:20:43 +02:00
parent c804515003
commit 1e1aca3784
2 changed files with 3 additions and 1 deletions

View File

@@ -3852,7 +3852,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
{ {
shl->attr_cur = shl->attr; shl->attr_cur = shl->attr;
} }
else if (v == (long)shl->endcol) else if (v >= (long)shl->endcol)
{ {
shl->attr_cur = 0; shl->attr_cur = 0;
next_search_hl(wp, shl, lnum, (colnr_T)v, cur); next_search_hl(wp, shl, lnum, (colnr_T)v, cur);

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
362,
/**/ /**/
361, 361,
/**/ /**/