fix: prevent curses error by avoiding writing to last terminal column
This commit is contained in:
parent
0025c4e437
commit
78ea389c82
|
|
@ -118,7 +118,7 @@ def main(stdscr, filename):
|
||||||
# Fill the entire bottom row for each pane
|
# Fill the entire bottom row for each pane
|
||||||
for x in range(divider_col):
|
for x in range(divider_col):
|
||||||
stdscr.addch(height - 1, x, ' ', left_attr)
|
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)
|
stdscr.addch(height - 1, x, ' ', right_attr)
|
||||||
|
|
||||||
# Add the percentage text
|
# Add the percentage text
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue