commit d01dbbb284b7239cc7575217ad53d19d26693116
parent c275c5158e18cb132e5a74c99b309aaf5af1e0c3
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 10 Jun 2020 10:25:11 +0200
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".
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -1041,10 +1041,6 @@ bool parse_combination(char *combostr, short *fg, short *bg, int *attributes)
if (comma != NULL) {
*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)
return FALSE;
if (vivid && COLORS > 8)