mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
9d7e3336cf
commit
15d86890d4
@ -252,7 +252,7 @@ static int included_patches[] = {
|
||||
346,
|
||||
//345,
|
||||
//344,
|
||||
//343,
|
||||
343,
|
||||
//342 NA
|
||||
//341,
|
||||
//340 NA
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user