From 0bbca540f7377889e2154aa5731f6eeffcb5c0cc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 11 Jan 2022 13:14:54 +0000 Subject: 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) --- src/drawline.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/drawline.c') diff --git a/src/drawline.c b/src/drawline.c index 8a042ed3ea..1cf468137a 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -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) -- cgit v1.2.3