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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user