From 9ab0e3d7cc12f41a89139e2ae1fdf9b6c459243d Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 15 Feb 2025 14:17:41 -0800 Subject: Minor code cleanup. * bast.sh (basta.query_terminal_lines): Remove unused curline variable. (basta.fullscreen): Likewise. Also move curly brace to next line. --- basta.sh | 5 ++--- 1 file 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) -- cgit v1.2.3