Commit bd97ae72 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

parent 2ff398c6
Showing with 3 additions and 4 deletions
+3 -4
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment