Mercurial > vim
comparison src/drawline.c @ 22997:00548e40e708 v8.2.2045
patch 8.2.2045: highlighting a character too much with incsearch
Commit: https://github.com/vim/vim/commit/448465e6872905967c97a56cd45307530795653c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 25 13:49:27 2020 +0100
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 https://github.com/vim/vim/issues/7360)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Nov 2020 14:00:04 +0100 |
parents | 1b1dc9dad42c |
children | 0bd44e94dd14 |
comparison
equal
deleted
inserted
replaced
22996:00ca79a2ae52 | 22997:00548e40e708 |
---|---|
639 getvcol(curwin, &pos, (colnr_T *)&tocol, NULL, NULL); | 639 getvcol(curwin, &pos, (colnr_T *)&tocol, NULL, NULL); |
640 } | 640 } |
641 else | 641 else |
642 tocol = MAXCOL; | 642 tocol = MAXCOL; |
643 // do at least one character; happens when past end of line | 643 // do at least one character; happens when past end of line |
644 if (fromcol == tocol) | 644 if (fromcol == tocol && search_match_endcol) |
645 tocol = fromcol + 1; | 645 tocol = fromcol + 1; |
646 area_highlighting = TRUE; | 646 area_highlighting = TRUE; |
647 vi_attr = HL_ATTR(HLF_I); | 647 vi_attr = HL_ATTR(HLF_I); |
648 } | 648 } |
649 } | 649 } |