diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-22 00:13:51 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-22 10:48:51 +1100 |
commit | 5b7dd9e43ccd2b82f07f0f0ff0ee8d54d0ecba11 (patch) | |
tree | 2afa1c595dad6ae8c0503217eac3f40e2a925924 /pkg/gui/line_by_line_panel.go | |
parent | 4ab5e5413944a92699a9540148666f0de26aa44b (diff) |
properly resolve cyclic dependency
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r-- | pkg/gui/line_by_line_panel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go index 3c1668b76..0576d3c0f 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -133,7 +133,7 @@ func (gui *Gui) handleMouseDrag() error { func (gui *Gui) getSelectedCommitFileName() string { idx := gui.State.Panels.CommitFiles.SelectedLineIdx - return gui.State.CommitFileManager.GetItemAtIndex(idx).GetPath() + return gui.State.CommitFileTreeViewModel.GetItemAtIndex(idx).GetPath() } func (gui *Gui) refreshMainViewForLineByLine(state *LblPanelState) error { |