diff src/drawline.c @ 18390:c34ee31d0878 v8.1.2189

patch 8.1.2189: syntax highlighting wrong for tab Commit: https://github.com/vim/vim/commit/82260afb0ec358f50df9816511f480d455a1cdac Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 13:16:22 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 13:30:04 +0200
parents 86c00b8fefea
children 1848b3e07266
line wrap: on
line diff
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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);