0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.2176: syntax attributes not combined with Visual highlighting

Problem:    Syntax attributes not combined with Visual highlighting. (Arseny
            Nasokin)
Solution:   Combine the attributes. (closes #5083)
This commit is contained in:
Bram Moolenaar
2019-10-18 23:12:20 +02:00
parent c3bf7b56f2
commit 8459006af5
4 changed files with 25 additions and 6 deletions

View File

@@ -1470,9 +1470,21 @@ win_line(
attr_pri = TRUE;
#ifdef LINE_ATTR
if (area_attr != 0)
{
char_attr = hl_combine_attr(line_attr, area_attr);
# ifdef FEAT_SYN_HL
if (syntax_attr != 0)
char_attr = hl_combine_attr(syntax_attr, char_attr);
# endif
}
else if (search_attr != 0)
{
char_attr = hl_combine_attr(line_attr, search_attr);
# ifdef FEAT_SYN_HL
if (syntax_attr != 0)
char_attr = hl_combine_attr(syntax_attr, char_attr);
# endif
}
# ifdef FEAT_TEXT_PROP
else if (text_prop_type != NULL)
{