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:
李通洲 committed 2023-08-15 16:41:04 +08:00
1 parent 2b2ebe0823
commit 8835f66b8c
5 files changed
+47 -37

No files matched your search

+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);
}