fix: prevent curses error by avoiding writing to last terminal column

This commit is contained in:
n loewen (aider) 2025-05-05 09:23:06 +01:00
parent 0025c4e437
commit 78ea389c82
1 changed files with 1 additions and 1 deletions

View File

@ -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