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:
@@ -6891,8 +6891,8 @@ match_add(wp, grp, pat, prio, id, pos_list)
|
||||
}
|
||||
if (toplnum == 0 || lnum < toplnum)
|
||||
toplnum = lnum;
|
||||
if (botlnum == 0 || lnum > botlnum)
|
||||
botlnum = lnum;
|
||||
if (botlnum == 0 || lnum >= botlnum)
|
||||
botlnum = lnum + 1;
|
||||
}
|
||||
|
||||
/* Calculate top and bottom lines for redrawing area */
|
||||
|
Reference in New Issue
Block a user