From ca9ae4d1f17ec05f4dd43dd8113661463917a080 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 31 Jan 2025 19:19:28 -0800 Subject: Do not set termios rows in prompt hooks. - I suspect this is involved in the bug I'm seeing whereby the scroll region goes wonky. It may be preventing our logic from kicking in to fix the situation, by making termios_lines equal LINES and to basta_old_lines. --- basta.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basta.sh b/basta.sh index f562cdd..776ab4e 100644 --- a/basta.sh +++ b/basta.sh @@ -123,7 +123,7 @@ basta.initial_prompt_hook() local exit=$? stty raw -echo onlcr opost basta.update_status - stty sane rows $basta_scroll_lines + stty sane PROMPT_COMMAND='basta.prompt_hook' } @@ -134,7 +134,7 @@ basta.prompt_hook() basta.check_cursor basta.do_exit_status $exit basta.update_status - stty sane rows $basta_scroll_lines + stty sane } basta.alarm_timer() -- cgit v1.2.3