Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)

fixes #772
This commit is contained in:
Michael Stapelberg 2012-08-13 01:35:07 +02:00
parent c69da4c4f5
commit cfaeba4df1

View File

@ -99,7 +99,7 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_format;
yajl_gen_string(json_gen, (const unsigned char *)"color", strlen("color")); \ yajl_gen_string(json_gen, (const unsigned char *)"color", strlen("color")); \
yajl_gen_string(json_gen, (const unsigned char *)val, strlen(val)); \ yajl_gen_string(json_gen, (const unsigned char *)val, strlen(val)); \
} else { \ } else { \
outwalk += sprintf(outwalk, "%s", color("color_bad")); \ outwalk += sprintf(outwalk, "%s", color(colorstr)); \
} \ } \
} \ } \
} while (0) } while (0)