Fastfetch: unescape strings only when parsing .conf files

So that `NO_CONFIG=1 ./fastfetch --os-key \\\\ -s os -l none` prints `\\: *`
This commit is contained in:
李通洲
2023-08-15 16:39:20 +08:00
parent 2b2ebe0823
commit 8835f66b8c
5 changed files with 47 additions and 37 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ void ffPrintCustom(FFCustomOptions* options)
}
ffPrintLogoAndKey(options->moduleArgs.key.length == 0 ? NULL : FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs.key, &options->moduleArgs.keyColor);
ffPrintUserString(options->moduleArgs.outputFormat.chars);
ffStrbufWriteTo(&options->moduleArgs.outputFormat, stdout);
puts(FASTFETCH_TEXT_MODIFIER_RESET);
}