mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +00:00
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)
448465e687
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user