From 78ea389c82a51964dbee7042105c7e410450b07e Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Mon, 5 May 2025 09:23:06 +0100 Subject: [PATCH] fix: prevent curses error by avoiding writing to last terminal column --- git_time_machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_time_machine.py b/git_time_machine.py index 17df67e..58aea1c 100644 --- a/git_time_machine.py +++ b/git_time_machine.py @@ -118,7 +118,7 @@ def main(stdscr, filename): # Fill the entire bottom row for each pane for x in range(divider_col): stdscr.addch(height - 1, x, ' ', left_attr) - for x in range(divider_col + 1, width): + for x in range(divider_col + 1, width - 1): # Avoid the last column stdscr.addch(height - 1, x, ' ', right_attr) # Add the percentage text