From a4446e4839f2824b20f5bd3131e8de5e26536ac6 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 13 Apr 2022 00:54:08 -0700 Subject: [PATCH] fixed width on spanner function --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 62d60d6..3321f2c 100644 --- a/functions +++ b/functions @@ -229,7 +229,7 @@ center() { spanner() { # 1: left-side-text, 2: right-side-text local spanner=""; - eval printf -v spanner \'"%0.1s"\' "-"{1..$[$(BOXWIDTH)- 2 - ${#1} - ${#2}]} + eval printf -v spanner \'"%0.1s"\' "-"{1..$[$((BOXWIDTH+24))- 2 - ${#1} - ${#2}]} printf "%s %s %s" "$1" "$spanner" "$2"; }