Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
fixes #772
This commit is contained in:
parent
c69da4c4f5
commit
cfaeba4df1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user