From 07c5745aa2423abb426be7bebd9e815cb6ca1e86 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Fri, 30 Dec 2016 00:06:29 +0000 Subject: [PATCH] Fix "normal" highlighting with termguicolors The 'uninitialised' value for RGB values is INVALCOLOR, but new entries in the cterm_attr_table were initialised to 0, meaning black. Fixes #1343 --- src/syntax.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/syntax.c b/src/syntax.c index 75ede361ca3af2..ef0e457911a8c0 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -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; }