From b771b6b5fe2ec36d23c21ab8229b15c80780468c Mon Sep 17 00:00:00 2001 From: Milly Date: Tue, 23 Nov 2021 12:07:25 +0000 Subject: patch 8.2.3653: terminal ANSI colors may be wrong Problem: Terminal ANSI colors may be wrong. Solution: Initialize the color type. (closes #9198, closes #9197) --- src/terminal.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/terminal.c b/src/terminal.c index f6c283b63..df1ca6990 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -4130,6 +4130,7 @@ set_vterm_palette(VTerm *vterm, long_u *rgb) { 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 index 0644ba222..8566cc3ff 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3653, /**/ 3652, /**/ -- cgit v1.2.1