1
0
forked from aniani/vim

patch 8.2.4062: match highlighting of tab too short

Problem:    Match highlighting of tab too short.
Solution:   Do not stop match highlighting if on a Tab. (Christian Brabandt,
            closes #9507, closes #9500)
This commit is contained in:
Bram Moolenaar
2022-01-11 13:14:54 +00:00
parent 0d47ad4027
commit 0bbca540f7
4 changed files with 33 additions and 2 deletions

View File

@@ -2043,9 +2043,10 @@ win_line(
if (n_extra < 0)
n_extra = 0;
}
if (on_last_col)
if (on_last_col && c != TAB)
// Do not continue search/match highlighting over the
// line break.
// line break, but for TABs the highlighting should
// include the complete width of the character
search_attr = 0;
if (c == TAB && n_extra + col > wp->w_width)