0
0
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:
Bram Moolenaar 2017-09-14 13:37:00 +02:00
parent c71053c611
commit 478e3a78c3
2 changed files with 5 additions and 3 deletions

View File

@ -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];
}
}

View File

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