aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-02-15 14:17:41 -0800
committerKaz Kylheku <kaz@kylheku.com>2025-02-15 14:17:41 -0800
commit9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d (patch)
tree0d8e568954353eedd989435cac2f7e97695f66c0
parent3fa322a8708de0c28cea50c0d3aa8d891276101c (diff)
downloadbasta-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.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/basta.sh b/basta.sh
index 15f8bda..f6b0b12 100644
--- a/basta.sh
+++ b/basta.sh
@@ -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)