aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basta.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/basta.sh b/basta.sh
index ce37890..cec8af5 100644
--- a/basta.sh
+++ b/basta.sh
@@ -29,14 +29,14 @@ basta.prepare_term()
if [ -z "$basta_prev_reserved_rows" ] ; then
basta_prev_reserved_rows=$((realrows - LINES))
printf "\n\033[A"
- else
- LINES=$((realrows - $basta_prev_reserved_rows))
fi
- basta_scroll_lines=$((LINES - 1))
- stty rows $basta_scroll_lines
+ LINES=$((realrows - $basta_prev_reserved_rows - 1))
+
+ basta_scroll_lines=$LINES
basta_old_lines=$LINES
basta_old_cols=$COLUMNS
+ stty rows $LINES
}
basta.get_cur_line()