From cfaeba4df17397ac8d99155bc166bba90db0dbbf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 13 Aug 2012 01:35:07 +0200 Subject: Bugfix: non-i3bar formats always used color_bad (Thanks hongy19) fixes #772 --- include/i3status.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/i3status.h') diff --git a/include/i3status.h b/include/i3status.h index eb19d52..dc40c8f 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -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 *)val, strlen(val)); \ } else { \ - outwalk += sprintf(outwalk, "%s", color("color_bad")); \ + outwalk += sprintf(outwalk, "%s", color(colorstr)); \ } \ } \ } while (0) -- cgit v1.2.3