rcfile: do not complain when "bright" is used with a background color
A background color *can* be bright (in the sense of lighter, shinier). It's just that the background cannot be bold. Only the typeface used on the foreground can be bold (if the terminal supports it). So, let "bright", when used with a background color, simply mean "light".master
parent
c275c5158e
commit
d01dbbb284
|
@ -1041,10 +1041,6 @@ bool parse_combination(char *combostr, short *fg, short *bg, int *attributes)
|
||||||
|
|
||||||
if (comma != NULL) {
|
if (comma != NULL) {
|
||||||
*bg = color_to_short(comma + 1, &vivid, &thick);
|
*bg = color_to_short(comma + 1, &vivid, &thick);
|
||||||
if (vivid && thick) {
|
|
||||||
jot_error(N_("A background color cannot be bright"));
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
if (*bg == BAD_COLOR)
|
if (*bg == BAD_COLOR)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (vivid && COLORS > 8)
|
if (vivid && COLORS > 8)
|
||||||
|
|
Loading…
Reference in New Issue