mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.545
Problem: Highlighting for multi-line matches is not correct. Solution: Stop highlight at the end of the match. (Hirohito Higashi) https://code.google.com/p/vim/source/detail?r=v7-4-545
This commit is contained in:
parent
811cb036d9
commit
dde24224ec
@ -2962,8 +2962,13 @@ win_line (
|
||||
if (shl->startcol != MAXCOL
|
||||
&& v >= (long)shl->startcol
|
||||
&& v < (long)shl->endcol) {
|
||||
int tmp_col = v + MB_PTR2LEN(ptr);
|
||||
|
||||
if (shl->endcol < tmp_col) {
|
||||
shl->endcol = tmp_col;
|
||||
}
|
||||
shl->attr_cur = shl->attr;
|
||||
} else if (v >= (long)shl->endcol && shl->lnum == lnum) {
|
||||
} else if (v == (long)shl->endcol) {
|
||||
shl->attr_cur = 0;
|
||||
|
||||
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
||||
|
@ -193,7 +193,7 @@ static int included_patches[] = {
|
||||
//548 NA
|
||||
//547,
|
||||
//546,
|
||||
//545,
|
||||
545,
|
||||
//544 NA
|
||||
543,
|
||||
//542,
|
||||
|
Loading…
Reference in New Issue
Block a user