aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-11-22 21:18:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2023-11-22 21:18:18 -0800
commit996912a3f4dba70dc548f6d8d18349a77b2db2bb (patch)
tree6f40c5a00e7512fca263b2d4f1aa1c2ae105d486
parent191cdeac843e91e4316f76d4fa2d3f3337c7830d (diff)
downloadbasta-996912a3f4dba70dc548f6d8d18349a77b2db2bb.tar.gz
basta-996912a3f4dba70dc548f6d8d18349a77b2db2bb.tar.bz2
basta-996912a3f4dba70dc548f6d8d18349a77b2db2bb.zip
bugfix: reference to nonexistent ROWS variable.
- in basta.get_cur_line, the default answer should be obtained from $LINES, not $ROWS.
-rw-r--r--basta.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/basta.sh b/basta.sh
index ce12a34..04b4fd4 100644
--- a/basta.sh
+++ b/basta.sh
@@ -39,7 +39,7 @@ basta.prepare_term()
basta.get_cur_line()
{
local esc=$(printf "\033")
- local response=$ROWS
+ local response=$LINES
printf "$esc[6n" > /dev/tty
read -t 3 -s -d R response < /dev/tty
local IFS="[;"