summaryrefslogtreecommitdiff
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-25 13:49:27 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-25 13:49:27 +0100
commit448465e6872905967c97a56cd45307530795653c (patch)
tree444e706bf1aa0d1ec35a1eb36fd22d1c042d7c41 /src/drawline.c
parent5ee0981fb5259f94900ab25207caddf1fa61010d (diff)
downloadvim-git-448465e6872905967c97a56cd45307530795653c.tar.gz
patch 8.2.2045: highlighting a character too much with incsearchv8.2.2045
Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes #7360)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 0b9974216..d51b4c2d6 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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);