Mercurial > vim
diff src/drawline.c @ 27067:89bc175b25a5
patch 8.2.4062: match highlighting of tab too short
Commit: https://github.com/vim/vim/commit/0bbca540f7377889e2154aa5731f6eeffcb5c0cc
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 11 13:14:54 2022 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 11 Jan 2022 14:15:04 +0100 |
parents | fc859aea8cec |
children | 41e0dcf38521 |
line wrap: on
line diff
--- 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)