0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.4.545

Problem:    Highlighting for multi-line matches is not correct.
Solution:   Stop highlight at the end of the match. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2014-12-13 03:36:39 +01:00
parent d96c52c71b
commit aff5c3a530
2 changed files with 9 additions and 1 deletions

View File

@@ -3864,9 +3864,15 @@ win_line(wp, lnum, startrow, endrow, nochange)
&& v >= (long)shl->startcol
&& v < (long)shl->endcol)
{
#ifdef FEAT_MBYTE
int tmp_col = v + MB_PTR2LEN(ptr);
if (shl->endcol < tmp_col)
shl->endcol = tmp_col;
#endif
shl->attr_cur = shl->attr;
}
else if (v >= (long)shl->endcol && shl->lnum == lnum)
else if (v == (long)shl->endcol)
{
shl->attr_cur = 0;
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);

View File

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