1
0
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:
Bram Moolenaar
2014-06-25 17:58:11 +02:00
parent db5ffaab5a
commit 41d7523986
2 changed files with 4 additions and 2 deletions

View File

@@ -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 */