aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-03-19 12:27:33 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-03-19 12:27:33 -0700
commit87af028f47d8d5d840586f9cc2f72738bd11e80d (patch)
tree80dec49dd6240c4d7e9b986b9613ce6212c9e3ea
parentbc74bf497cb004eb0bc77dd6925818c5db063178 (diff)
downloadbasta-87af028f47d8d5d840586f9cc2f72738bd11e80d.tar.gz
basta-87af028f47d8d5d840586f9cc2f72738bd11e80d.tar.bz2
basta-87af028f47d8d5d840586f9cc2f72738bd11e80d.zip
fullscreen: regression: no args in non-fulscreen case.
* basta.sh (basta.fullscreen): Move the calculation of the args variable to the top. It was not yet set in the case when we run the command without fullscreen and return (because standard output is not a TTY, and -f had not been specified).
-rw-r--r--basta.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/basta.sh b/basta.sh
index 9dff193..a2823bb 100644
--- a/basta.sh
+++ b/basta.sh
@@ -315,6 +315,7 @@ basta.fullscreen()
local saveterm=
local force=
local ttyfd
+ local args=$(printf "%q " "$@")
while true; do
case $1 in
@@ -354,7 +355,6 @@ basta.fullscreen()
printf $'\e7\e[1;%sr\e8' $realrows >&$ttyfd
stty rows $realrows <&$ttyfd
- local args=$(printf "%q " "$@")
LINES=$realrows eval command $args || exit=$?
if [ $saveterm ] ; then