mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user