1
0
forked from aniani/vim

patch 8.1.2189: syntax highlighting wrong for tab

Problem:    Syntax highlighting wrong for tab.
Solution:   Don't clear syntax attribute n_extra is non-zero.
This commit is contained in:
Bram Moolenaar
2019-10-20 13:16:22 +02:00
parent 2b78ab5d0c
commit 82260afb0e
4 changed files with 7 additions and 3 deletions

View File

@@ -1400,9 +1400,9 @@ win_line(
#endif
#ifdef FEAT_SYN_HL
syntax_attr = 0;
if (extra_check && n_extra == 0)
{
syntax_attr = 0;
# ifdef FEAT_TERMINAL
if (get_term_attr)
syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol);