mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
seperator is now always the width of the title
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
|
||||
void ffPrintSeparator(FFinstance* instance)
|
||||
{
|
||||
const FFTitleResult* result = ffDetectTitle(instance);
|
||||
uint32_t titleLength = result->userName.length + 1 + result->hostname.length;
|
||||
|
||||
ffPrintLogoLine(instance);
|
||||
|
||||
for(uint32_t i = 0; i < instance->config.titleLength; i++)
|
||||
for(uint32_t i = 0; i < titleLength; i++)
|
||||
putchar('-');
|
||||
putchar('\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user