Permalink
Browse files

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.
  • Loading branch information...
brammool committed Jul 9, 2014
1 parent c804515 commit 1e1aca37841103a90ba773f14899ba3a3757cee2
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/screen.c
  2. +2 −0 src/version.c
View
@@ -3852,7 +3852,7 @@ win_line(wp, lnum, startrow, endrow, nochange)
{
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);
View
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
362,
/**/
361,
/**/

0 comments on commit 1e1aca3

Please sign in to comment.