tweaks: set a modifier in a single place, for conciseness

master
Benno Schulenberg 2018-01-15 13:15:23 +01:00
parent 2ff398c685
commit bd97ae7255
1 changed files with 3 additions and 4 deletions

View File

@ -591,7 +591,8 @@ short color_to_short(const char *colorname, bool *bright)
if (strncasecmp(colorname, "bright", 6) == 0) {
*bright = TRUE;
colorname += 6;
}
} else
*bright = FALSE;
if (strcasecmp(colorname, "green") == 0)
return COLOR_GREEN;
@ -624,7 +625,7 @@ short color_to_short(const char *colorname, bool *bright)
void parse_colors(char *ptr, int rex_flags)
{
short fg, bg;
bool bright = FALSE;
bool bright;
char *item;
if (!opensyntax) {
@ -779,8 +780,6 @@ colortype *parse_interface_color(char *combostr)
{
colortype *trio = nmalloc(sizeof(colortype));
trio->bright = FALSE;
if (parse_color_names(combostr, &trio->fg, &trio->bg, &trio->bright)) {
free(combostr);
return trio;