Skip to content

Commit

Permalink
Fix "normal" highlighting with termguicolors
Browse files Browse the repository at this point in the history
The 'uninitialised' value for RGB values is INVALCOLOR, but new entries in the
cterm_attr_table were initialised to 0, meaning black.

Fixes #1343
  • Loading branch information
puremourning committed Dec 30, 2016
1 parent c4bfeda commit 07c5745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/syntax.c
Expand Up @@ -8765,6 +8765,8 @@ hl_combine_attr(int char_attr, int prim_attr)
else
{
vim_memset(&new_en, 0, sizeof(new_en));
new_en.ae_u.cterm.bg_rgb = INVALCOLOR;
new_en.ae_u.cterm.fg_rgb = INVALCOLOR;
if (char_attr <= HL_ALL)
new_en.ae_attr = char_attr;
}
Expand Down

0 comments on commit 07c5745

Please sign in to comment.