mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +00:00
Fix formatting of banner in classic style progress
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
70ca64a392
commit
6dd65d33ca
1 file changed
+1
-1
+1
-1
@@ -260,7 +260,7 @@ void print_banner(const char *heading)
|
|||||||
if (progress_style == PROGRESS_CLASSIC) {
|
if (progress_style == PROGRESS_CLASSIC) {
|
||||||
strlcat(buf, "\e[1m", sizeof(buf));
|
strlcat(buf, "\e[1m", sizeof(buf));
|
||||||
strlcat(buf, heading, sizeof(buf));
|
strlcat(buf, heading, sizeof(buf));
|
||||||
pad(buf, sizeof(buf), "=", SCREEN_WIDTH - 2);
|
pad(buf, sizeof(buf), "=", SCREEN_WIDTH + 10);
|
||||||
} else {
|
} else {
|
||||||
size_t wmax = 80 <= SCREEN_WIDTH ? 80 : SCREEN_WIDTH;
|
size_t wmax = 80 <= SCREEN_WIDTH ? 80 : SCREEN_WIDTH;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user