fix: Conditionally remove margin padding when not in diff mode
This commit is contained in:
parent
b35b07e003
commit
a035a350d4
8
gtm2.py
8
gtm2.py
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue