0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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)
This commit is contained in:
Milly 2021-11-23 12:07:25 +00:00 committed by Bram Moolenaar
parent e021662f39
commit b771b6b5fe
2 changed files with 3 additions and 0 deletions

View 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;

View File

@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3653,
/**/
3652,
/**/