style: Align code display by padding non-modified lines

This commit is contained in:
n loewen (aider) 2025-06-07 20:05:50 +01:00
parent 90a9f311fc
commit 54b361aead
1 changed files with 3 additions and 2 deletions

5
gtm
View File

@ -234,8 +234,9 @@ def main(stdscr, filename, show_additions=False, show_deletions=False):
stdscr.addstr(display_row, divider_col + 2, "- ", curses.color_pair(4))
stdscr.addnstr(display_row, divider_col + 4, content, right_width - 2, curses.color_pair(4))
else:
# Regular line
stdscr.addnstr(display_row, divider_col + 2, content, right_width)
# Regular line - add padding to align with +/- lines
stdscr.addstr(display_row, divider_col + 2, " ") # Two spaces for alignment
stdscr.addnstr(display_row, divider_col + 4, content, right_width - 2)
display_row += 1