1
0
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:
Bram Moolenaar
2020-11-25 13:49:27 +01:00
parent 5ee0981fb5
commit 448465e687
8 changed files with 64 additions and 1 deletions

View File

@@ -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);