diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-02-15 14:17:41 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-02-15 14:17:41 -0800 |
commit | 9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d (patch) | |
tree | 0d8e568954353eedd989435cac2f7e97695f66c0 | |
parent | 3fa322a8708de0c28cea50c0d3aa8d891276101c (diff) | |
download | basta-9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d.tar.gz basta-9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d.tar.bz2 basta-9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d.zip |
Minor code cleanup.
* bast.sh (basta.query_terminal_lines): Remove unused
curline variable.
(basta.fullscreen): Likewise. Also move curly brace to
next line.
-rw-r--r-- | basta.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -18,7 +18,6 @@ basta.query_terminal_lines() { local intovar=$1 local result - local curline printf $'\e7\e[999;999H' basta.get_cur_line $intovar result=$? @@ -306,7 +305,8 @@ basta.import_array() # Public API functions -basta.fullscreen() { +basta.fullscreen() +{ if [ -n "$COMP_WORDS" ]; then command "$@" return $? @@ -314,7 +314,6 @@ basta.fullscreen() { local basta_executing=y local realrows=$(( LINES + basta_prev_reserved_rows + 1 )) - local curline local i local exit=0 local saveint=$(trap -p INT) |