forked from aniani/vim
updated for version 7.4.343
Problem: matchdelete() does not always update the right lines. Solution: Fix off-by-one error. (Ozaki Kiichi)
This commit is contained in:
@@ -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 */
|
||||||
|
/**/
|
||||||
|
343,
|
||||||
/**/
|
/**/
|
||||||
342,
|
342,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -6891,8 +6891,8 @@ match_add(wp, grp, pat, prio, id, pos_list)
|
|||||||
}
|
}
|
||||||
if (toplnum == 0 || lnum < toplnum)
|
if (toplnum == 0 || lnum < toplnum)
|
||||||
toplnum = lnum;
|
toplnum = lnum;
|
||||||
if (botlnum == 0 || lnum > botlnum)
|
if (botlnum == 0 || lnum >= botlnum)
|
||||||
botlnum = lnum;
|
botlnum = lnum + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate top and bottom lines for redrawing area */
|
/* Calculate top and bottom lines for redrawing area */
|
||||||
|
Reference in New Issue
Block a user