# HG changeset patch # User Christian Brabandt # Date 1483389904 -3600 # Node ID e88ffb09ff386118a3c0e335d139c0097c726d99 # Parent 883396809b4595ef0075603df01c8e771e490e5f commit https://github.com/vim/vim/commit/0cdb72aa38c4a0140c94d56bf8bc17cb30260ebf Author: Bram Moolenaar Date: Mon Jan 2 21:37:40 2017 +0100 patch 8.0.0142 Problem: Normal colors are wrong with 'termguicolors'. Solution: Initialize to INVALCOLOR instead of zero. (Ben Jackson, closes https://github.com/vim/vim/issues/1344) diff --git a/src/syntax.c b/src/syntax.c --- a/src/syntax.c +++ b/src/syntax.c @@ -8765,6 +8765,10 @@ hl_combine_attr(int char_attr, int prim_ else { vim_memset(&new_en, 0, sizeof(new_en)); +#ifdef FEAT_TERMGUICOLORS + new_en.ae_u.cterm.bg_rgb = INVALCOLOR; + new_en.ae_u.cterm.fg_rgb = INVALCOLOR; +#endif if (char_attr <= HL_ALL) new_en.ae_attr = char_attr; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 142, +/**/ 141, /**/ 140,