seperator is now always the width of the title

This commit is contained in:
Linus Dierheimer
2021-06-15 11:04:44 +02:00
parent 4fecc76083
commit 0bf486fa67
4 changed files with 50 additions and 11 deletions
+4 -1
View File
@@ -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');
}