summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilly <milly.ca@gmail.com>2021-11-23 12:07:25 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-23 12:07:25 +0000
commitb771b6b5fe2ec36d23c21ab8229b15c80780468c (patch)
tree6a58085d018b8f8894fe3b903733f87f6312cbe1
parente021662f39b38ef7cf27e13850d0ce6890e48376 (diff)
downloadvim-git-b771b6b5fe2ec36d23c21ab8229b15c80780468c.tar.gz
patch 8.2.3653: terminal ANSI colors may be wrongv8.2.3653
Problem: Terminal ANSI colors may be wrong. Solution: Initialize the color type. (closes #9198, closes #9197)
-rw-r--r--src/terminal.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
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
@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3653,
+/**/
3652,
/**/
3651,