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)
diff --git a/src/drawline.c b/src/drawline.c
index 8a042ed..1cf4681 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -2043,9 +2043,10 @@
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)