summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index ce2ff8852..a3efa9a7f 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7733,6 +7733,9 @@ hl_combine_attr(char_attr, prim_attr)
else
{
vim_memset(&new_en, 0, sizeof(new_en));
+ new_en.ae_u.gui.fg_color = INVALCOLOR;
+ new_en.ae_u.gui.bg_color = INVALCOLOR;
+ new_en.ae_u.gui.sp_color = INVALCOLOR;
if (char_attr <= HL_ALL)
new_en.ae_attr = char_attr;
}