From e4a1a836fe111408f1bb2ebaa63e3f17d40c9984 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 6 Jun 2022 14:20:05 +0200 Subject: [PATCH] Fix keys not being bolt if main color is not set --- src/logo/logo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/logo/logo.c b/src/logo/logo.c index be555c914..079047e65 100644 --- a/src/logo/logo.c +++ b/src/logo/logo.c @@ -257,7 +257,11 @@ void ffPrintLogoAndKey(FFinstance* instance, const char* moduleName, uint8_t mod if(!instance->config.pipe) { fputs(FASTFETCH_TEXT_MODIFIER_RESET FASTFETCH_TEXT_MODIFIER_BOLT, stdout); - ffPrintColor(&instance->config.mainColor); + + //If the main color is not set (e.g. none logo), this would reset in \0333[m, which resets everything, + //including the wanted bolt from above. So we only print it, if the main color is at least one char. + if(instance->config.mainColor.length > 0) + ffPrintColor(&instance->config.mainColor); } if(customKeyFormat == NULL || customKeyFormat->length == 0)