forked from aniani/vim
patch 8.2.2045: highlighting a character too much with incsearch
Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes #7360)
This commit is contained in:
@@ -641,7 +641,7 @@ win_line(
|
||||
else
|
||||
tocol = MAXCOL;
|
||||
// do at least one character; happens when past end of line
|
||||
if (fromcol == tocol)
|
||||
if (fromcol == tocol && search_match_endcol)
|
||||
tocol = fromcol + 1;
|
||||
area_highlighting = TRUE;
|
||||
vi_attr = HL_ATTR(HLF_I);
|
||||
|
Reference in New Issue
Block a user