mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch: 7.4.362
Problem: When matchaddpos() uses a length smaller than the number of bytes in the (last) character the highlight continues until the end of the line. Solution: Change condition from equal to larger-or-equal. https://code.google.com/p/vim/source/detail?r=7fa2bed947fde3514a700c96861a537d816d6fd4
This commit is contained in:
parent
a8124602f0
commit
9d7e3336cf
@ -2957,7 +2957,7 @@ win_line (
|
|||||||
&& v >= (long)shl->startcol
|
&& v >= (long)shl->startcol
|
||||||
&& v < (long)shl->endcol) {
|
&& v < (long)shl->endcol) {
|
||||||
shl->attr_cur = shl->attr;
|
shl->attr_cur = shl->attr;
|
||||||
} else if (v == (long)shl->endcol) {
|
} else if (v >= (long)shl->endcol) {
|
||||||
shl->attr_cur = 0;
|
shl->attr_cur = 0;
|
||||||
|
|
||||||
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
||||||
|
@ -233,7 +233,7 @@ static int included_patches[] = {
|
|||||||
//365,
|
//365,
|
||||||
//364,
|
//364,
|
||||||
//363,
|
//363,
|
||||||
//362,
|
362,
|
||||||
//361,
|
//361,
|
||||||
//360,
|
//360,
|
||||||
//359,
|
//359,
|
||||||
|
Loading…
Reference in New Issue
Block a user