From 54b361aeade3015c3d522e8263283412fad3be35 Mon Sep 17 00:00:00 2001 From: "n loewen (aider)" Date: Sat, 7 Jun 2025 20:05:50 +0100 Subject: [PATCH] style: Align code display by padding non-modified lines --- gtm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtm b/gtm index e9101af..0646274 100755 --- a/gtm +++ b/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