diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-03-19 12:27:33 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-03-19 12:27:33 -0700 |
commit | 87af028f47d8d5d840586f9cc2f72738bd11e80d (patch) | |
tree | 80dec49dd6240c4d7e9b986b9613ce6212c9e3ea | |
parent | bc74bf497cb004eb0bc77dd6925818c5db063178 (diff) | |
download | basta-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.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |