mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-02 03:14:15 +01:00
removed ffStrbufIsEmpty
This commit is contained in:
+5
-5
@@ -29,17 +29,17 @@ void ffPrintShell(FFinstance* instance)
|
||||
|
||||
FF_STRBUF_CREATE(shell);
|
||||
|
||||
if(!ffStrbufIsEmpty(&instance->config.shellFormat))
|
||||
if(instance->config.shellFormat.length == 0)
|
||||
{
|
||||
ffStrbufSetS(&shell, shellName);
|
||||
}
|
||||
else
|
||||
{
|
||||
ffParseFormatString(&shell, &instance->config.shellFormat, 2,
|
||||
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, shellPath},
|
||||
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, shellName}
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
ffStrbufSetS(&shell, shellName);
|
||||
}
|
||||
|
||||
ffPrintAndSaveCachedValue(instance, "Shell", &shell);
|
||||
ffStrbufDestroy(&shell);
|
||||
|
||||
Reference in New Issue
Block a user