fix: Conditionally remove margin padding when not in diff mode

This commit is contained in:
n loewen (aider) 2025-06-07 22:41:06 +01:00
parent b35b07e003
commit a035a350d4
1 changed files with 6 additions and 2 deletions

View File

@ -262,8 +262,12 @@ def draw_right_pane(stdscr, state):
stdscr.addstr(display_row, state.divider_col + 2, "- ", curses.color_pair(4))
stdscr.addnstr(display_row, state.divider_col + 4, content, right_width - 2, curses.color_pair(4))
else:
stdscr.addstr(display_row, state.divider_col + 2, " ")
stdscr.addnstr(display_row, state.divider_col + 4, content, right_width - 2)
if state.show_whole_diff or state.show_additions or state.show_deletions:
stdscr.addstr(display_row, state.divider_col + 2, " ")
stdscr.addnstr(display_row, state.divider_col + 4, content, right_width - 2)
else:
# No diff mode, so don't add the margin padding
stdscr.addnstr(display_row, state.divider_col + 2, content, right_width)
display_row += 1