]> git.sur5r.net Git - i3/i3status/blobdiff - src/output.c
Bugfix: Don’t show colors in wireless info if colors are disabled (Thanks shatter)
[i3/i3status] / src / output.c
index c153a01126dcf69ce0dc92a56c4f47090f9eeb7f..eee458bd9be878e75e04a68a35aa952456fea24e 100644 (file)
@@ -26,6 +26,10 @@ void write_error_to_statusbar(const char *message) {
  */
 char *color(const char *colorstr) {
         static char colorbuf[32];
+        if (!use_colors) {
+                colorbuf[0] = '\0';
+                return colorbuf;
+        }
 #ifdef DZEN
         (void)snprintf(colorbuf, sizeof(colorbuf), "^fg(%s)", colorstr);
 #elif XMOBAR