Fastfetch: fix #517

1. Fix specifying `--set-keyless` with the same key second time won't override the value set before
2. Fix specifying `--color` second time won't clear the value set before
This commit is contained in:
李通洲
2023-08-12 09:40:37 +08:00
parent 97b779aefb
commit a87a0470ca
3 changed files with 21 additions and 4 deletions
+1
View File
@@ -132,6 +132,7 @@ bool ffOptionParseBoolean(const char* str)
void ffOptionParseColor(const char* value, FFstrbuf* buffer)
{
ffStrbufClear(buffer);
ffStrbufEnsureFree(buffer, 63);
while(*value != '\0')