Skip to content

Commit 0cdb72a

Browse files
committed
patch 8.0.0142
Problem: Normal colors are wrong with 'termguicolors'. Solution: Initialize to INVALCOLOR instead of zero. (Ben Jackson, closes #1344)
1 parent bc2eada commit 0cdb72a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/syntax.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8765,6 +8765,10 @@ hl_combine_attr(int char_attr, int prim_attr)
87658765
else
87668766
{
87678767
vim_memset(&new_en, 0, sizeof(new_en));
8768+
#ifdef FEAT_TERMGUICOLORS
8769+
new_en.ae_u.cterm.bg_rgb = INVALCOLOR;
8770+
new_en.ae_u.cterm.fg_rgb = INVALCOLOR;
8771+
#endif
87688772
if (char_attr <= HL_ALL)
87698773
new_en.ae_attr = char_attr;
87708774
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
142,
767769
/**/
768770
141,
769771
/**/

0 commit comments

Comments
 (0)