diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-04-01 07:14:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-04-01 07:14:48 -0700 |
commit | 8853f053225f5f63d2210f6989b6ea4823a09aae (patch) | |
tree | 7e67caaf6bdc5ec9a9ba0d90aa263aec127a0828 | |
parent | 87af028f47d8d5d840586f9cc2f72738bd11e80d (diff) | |
download | basta-8853f053225f5f63d2210f6989b6ea4823a09aae.tar.gz basta-8853f053225f5f63d2210f6989b6ea4823a09aae.tar.bz2 basta-8853f053225f5f63d2210f6989b6ea4823a09aae.zip |
fullscreen: bug: calculate args after removing options.
* basta.sh (basta.fullscreen): We must take the
arguments for the program after recognizing and
removing the function's options, otherwise we
treat those options as part of the command.
-rw-r--r-- | basta.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -315,7 +315,6 @@ basta.fullscreen() local saveterm= local force= local ttyfd - local args=$(printf "%q " "$@") while true; do case $1 in @@ -336,6 +335,8 @@ basta.fullscreen() shift done + local args=$(printf "%q " "$@") + if ! [ -t 1 ] && ! [ $force ] ; then eval command $args return $? |