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)
diff --git a/src/drawline.c b/src/drawline.c
index 0b99742..d51b4c2 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -641,7 +641,7 @@
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);