Permalink
Browse files

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.
  • Loading branch information...
brammool committed Sep 14, 2017
1 parent c71053c commit 478e3a78c37de214aadf7399fac77227b7316f40
Showing with 5 additions and 3 deletions.
  1. +3 −3 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1103,
/**/
1102,
/**/

0 comments on commit 478e3a7

Please sign in to comment.