vim-patch: 7.4.343

Problem:    matchdelete() does not always update the right lines.
Solution:   Fix off-by-one error.  (Ozaki Kiichi)

https://code.google.com/p/vim/source/detail?r=539ce56d8f35fe2deb5c4f57335e1adf97ae4e74
This commit is contained in:
Felipe Morales 2014-09-01 15:42:15 -04:00
parent 9d7e3336cf
commit 15d86890d4
2 changed files with 3 additions and 3 deletions

View File

@ -252,7 +252,7 @@ static int included_patches[] = {
346,
//345,
//344,
//343,
343,
//342 NA
//341,
//340 NA

View File

@ -5315,8 +5315,8 @@ int match_add(win_T *wp, char_u *grp, char_u *pat, int prio, int id, list_T *pos
if (toplnum == 0 || lnum < toplnum) {
toplnum = lnum;
}
if (botlnum == 0 || lnum > botlnum) {
botlnum = lnum;
if (botlnum == 0 || lnum >= botlnum) {
botlnum = lnum + 1;
}
}