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:
parent
e021662f39
commit
b771b6b5fe
@ -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;
|
||||
|
@ -757,6 +757,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3653,
|
||||
/**/
|
||||
3652,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user