From: Chris Koeritz Date: Sun, 17 Oct 2021 07:00:46 +0000 (-0400) Subject: separator command uses terminal size now X-Git-Tag: 2.140.131^2~37 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=26e6e9a10e87545766bb708c62817a8c71ec82c1;p=feisty_meow.git separator command uses terminal size now if there is no specified size. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index fa5df863..c1a14c0e 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -768,11 +768,11 @@ return 0 { count=$1; shift if [ -z "$count" ]; then - count=79 + count=$(($COLUMNS - 1)) fi echo local i - for ((i=0; i < $count - 1; i++)); do + for ((i=0; i < $count; i++)); do echo -n "=" done echo