aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basta.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/basta.sh b/basta.sh
index bf999c8..d0afc20 100644
--- a/basta.sh
+++ b/basta.sh
@@ -354,7 +354,7 @@ basta.fullscreen_alt() {
basta_deferred_intr=WINCH
LINES=$realrows command "$@" || exit=$?
- local scrolls_needed=$basta_prev_reserved_rows
+ local scrolls_needed=$((basta_prev_reserved_rows + 1))
if basta.query_terminal_lines realrows >&$ttyfd <&$ttyfd &&
basta.get_cur_line curline >&$ttyfd <&$ttyfd
@@ -369,7 +369,7 @@ basta.fullscreen_alt() {
printf $'\n' >&$ttyfd
done
- printf $'\n\e[%sA' $(( basta_prev_reserved_rows + 1 )) >&$ttyfd
+ printf $'\e[%sA' $(( basta_prev_reserved_rows + 1 )) >&$ttyfd
fi
exec {ttyfd}>&-