# HG changeset patch # User Bram Moolenaar # Date 1637669703 -3600 # Node ID 288bcbaa48ca30495101e3ad7feb3d729bc68481 # Parent 80035b0c5ca8f923095b41b11f977d1585b46904 patch 8.2.3653: terminal ANSI colors may be wrong Commit: https://github.com/vim/vim/commit/b771b6b5fe2ec36d23c21ab8229b15c80780468c Author: Milly Date: Tue Nov 23 12:07:25 2021 +0000 patch 8.2.3653: terminal ANSI colors may be wrong Problem: Terminal ANSI colors may be wrong. Solution: Initialize the color type. (closes https://github.com/vim/vim/issues/9198, closes https://github.com/vim/vim/issues/9197) diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -4130,6 +4130,7 @@ set_vterm_palette(VTerm *vterm, long_u * { VTermColor color; + color.type = VTERM_COLOR_RGB; color.red = (unsigned)(rgb[index] >> 16); color.green = (unsigned)(rgb[index] >> 8) & 255; color.blue = (unsigned)rgb[index] & 255; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3653, +/**/ 3652, /**/ 3651,