From a216f0735dabb013c623232a10a1c541cb05ba61 Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Sat, 29 Apr 2017 00:40:12 -0500 Subject: [PATCH] Math is hard. --- slib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slib.sh b/slib.sh index 443c72c..4a4be8a 100644 --- a/slib.sh +++ b/slib.sh @@ -305,7 +305,7 @@ run_ok () { if [ $columns -ge 80 ]; then columns=80 fi - COL=$(( ${columns}-${#msg}+${#GREENBG}+${#NORMAL}-1 )) + COL=$(( ${columns}-${#msg}-${#GREENBG}-${#NORMAL}-1 )) printf "%s%${COL}s" "$2" # Make sure there some unicode action in the shell; there's no