style: Align code display by padding non-modified lines
This commit is contained in:
parent
90a9f311fc
commit
54b361aead
5
gtm
5
gtm
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue