changeset 26244:288bcbaa48ca v8.2.3653

patch 8.2.3653: terminal ANSI colors may be wrong Commit: https://github.com/vim/vim/commit/b771b6b5fe2ec36d23c21ab8229b15c80780468c Author: Milly <milly.ca@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Nov 2021 13:15:03 +0100
parents 80035b0c5ca8
children c0aea719e669
files src/terminal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,