diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-11 13:14:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-11 13:14:54 +0000 |
commit | 0bbca540f7377889e2154aa5731f6eeffcb5c0cc (patch) | |
tree | 61cc03237b9266b9c7e436b3997c8110e1b6094d /src/drawline.c | |
parent | 0d47ad40274ed9c7ace636b2a4063182c905a2b4 (diff) | |
download | vim-git-0bbca540f7377889e2154aa5731f6eeffcb5c0cc.tar.gz |
patch 8.2.4062: match highlighting of tab too shortv8.2.4062
Problem: Match highlighting of tab too short.
Solution: Do not stop match highlighting if on a Tab. (Christian Brabandt,
closes #9507, closes #9500)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index 8a042ed3e..1cf468137 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) |