aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-08-29 11:51:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-08-29 11:51:07 -0700
commitf68dc7ccb1489dabce1fd3997a7c59e39b23b4ad (patch)
tree3babdb261ac1cc7ae7154f3f5a57137ab2b7b769
parent5a86524791a55c3dc2b5b40366a8872e8d931781 (diff)
downloadbasta-f68dc7ccb1489dabce1fd3997a7c59e39b23b4ad.tar.gz
basta-f68dc7ccb1489dabce1fd3997a7c59e39b23b4ad.tar.bz2
basta-f68dc7ccb1489dabce1fd3997a7c59e39b23b4ad.zip
bugfix: don't use $LINE to initialize basta_scroll_lines.
- When a new interactive shell is launched, there is a time before the LINE variable exists, so we end up initializing basta_scroll_lines to a blank value, which causes bad syntax in the comparison [ $curln -gt $basta_scroll_lines ].
-rw-r--r--basta.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/basta.sh b/basta.sh
index 601d3a4..aeb210e 100644
--- a/basta.sh
+++ b/basta.sh
@@ -4,7 +4,7 @@ basta_old_cmdno=${basta_old_cmdno-0}
basta_old_lines=${basta_old_lines-0}
basta_old_cols=${basta_old_cols-0}
-basta_scroll_lines=${basta_scroll_lines-$LINES}
+basta_scroll_lines=${basta_scroll_lines-0}
basta_prev_reserved_rows=${basta_prev_reserved_rows-}
basta_status_alarm_pid=${basta_status_alarm_pid-}