aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-26 19:42:00 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-27 01:12:44 -0400
commit618b17f5754e4b15657ef65326f2fba3f9bc73c2 (patch)
tree589ad144e49d432044ec471e732f4790133044a4 /src/nvim/screen.c
parent31e2546cc908aa17aa68f7812eec5d4f08fbbc55 (diff)
downloadrneovim-618b17f5754e4b15657ef65326f2fba3f9bc73c2.tar.gz
rneovim-618b17f5754e4b15657ef65326f2fba3f9bc73c2.tar.bz2
rneovim-618b17f5754e4b15657ef65326f2fba3f9bc73c2.zip
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 vim/vim#7360) https://github.com/vim/vim/commit/448465e6872905967c97a56cd45307530795653c
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 095c020fe4..749627de80 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -2322,7 +2322,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow,
getvcol(curwin, &pos, (colnr_T *)&tocol, NULL, NULL);
}
// 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;