]> granicus.if.org Git - vim/commitdiff
patch 8.2.3653: terminal ANSI colors may be wrong v8.2.3653
authorMilly <milly.ca@gmail.com>
Tue, 23 Nov 2021 12:07:25 +0000 (12:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 Nov 2021 12:07:25 +0000 (12:07 +0000)
Problem:    Terminal ANSI colors may be wrong.
Solution:   Initialize the color type. (closes #9198, closes #9197)

src/terminal.c
src/version.c

index f6c283b639455e711829168240876bac1c72f80f..df1ca6990444173a3cf83331b12f8086a035fdfb 100644 (file)
@@ -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;
index 0644ba2226b67d6a098861ae26b95db573421568..8566cc3ffe96b416588e4e811565ca1f0e8d03f8 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3653,
 /**/
     3652,
 /**/