Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18389:1ee8267f1258 | 18390:c34ee31d0878 |
---|---|
1398 } | 1398 } |
1399 } | 1399 } |
1400 #endif | 1400 #endif |
1401 | 1401 |
1402 #ifdef FEAT_SYN_HL | 1402 #ifdef FEAT_SYN_HL |
1403 syntax_attr = 0; | |
1404 if (extra_check && n_extra == 0) | 1403 if (extra_check && n_extra == 0) |
1405 { | 1404 { |
1405 syntax_attr = 0; | |
1406 # ifdef FEAT_TERMINAL | 1406 # ifdef FEAT_TERMINAL |
1407 if (get_term_attr) | 1407 if (get_term_attr) |
1408 syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol); | 1408 syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol); |
1409 # endif | 1409 # endif |
1410 // Get syntax attribute. | 1410 // Get syntax attribute. |