diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/auto_detect_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index 46e5f95..6ec5f73 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -139,7 +139,7 @@ char *auto_detect_format(void) { else if (strcasecmp(name, "xmobar") == 0) newfmt = "xmobar"; - if (newfmt && format) { + if (newfmt && format && strcmp(newfmt, format) != 0) { fprintf(stderr, "i3status: cannot auto-configure, situation ambiguous (format \"%s\" *and* \"%s\" detected)\n", newfmt, format); format = NULL; break; |