mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.1103: converting cterm color fails for grey ramp
Problem: Converting cterm color fails for grey ramp. Solution: Use index instead of number.
This commit is contained in:
parent
c71053c611
commit
478e3a78c3
@ -2437,9 +2437,9 @@ cterm_color2rgb(int nr, VTermColor *rgb)
|
||||
{
|
||||
/* 24 grey scale ramp */
|
||||
idx = nr - 232;
|
||||
rgb->blue = grey_ramp[nr];
|
||||
rgb->green = grey_ramp[nr];
|
||||
rgb->red = grey_ramp[nr];
|
||||
rgb->blue = grey_ramp[idx];
|
||||
rgb->green = grey_ramp[idx];
|
||||
rgb->red = grey_ramp[idx];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -769,6 +769,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1103,
|
||||
/**/
|
||||
1102,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user