editor: Add a class and function browser

This commit is contained in:
Andrew Hamilton 2022-04-19 11:23:32 +10:00
parent 7b7faba590
commit 2355358816
3 changed files with 167 additions and 8 deletions

View file

@ -343,8 +343,8 @@ class DiffEditor:
if opcode == "equal":
continue
color = colors[color_index % len(colors)]
left_y = left_start - left_scroll + 1 # 1 for header
right_y = right_start - right_scroll + 1 # 1 for header
left_y = left_start - left_scroll + self.left_editor.parts_height + 1 # 1 for header
right_y = right_start - right_scroll + self.right_editor.parts_height + 1 # 1 for header
draw_connector(columns, color, left_y, right_y)
for y in [left_y, right_y]:
if y <= 0: