summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_building_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r--pkg/gui/patch_building_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go
index d71b43e76..dd82f998a 100644
--- a/pkg/gui/patch_building_panel.go
+++ b/pkg/gui/patch_building_panel.go
@@ -13,7 +13,7 @@ func (gui *Gui) refreshPatchBuildingPanel(selectedLineIdx int) error {
gui.Views.Secondary.Title = "Custom Patch"
// get diff from commit file that's currently selected
- node := gui.State.Contexts.CommitFiles.GetSelectedFileNode()
+ node := gui.State.Contexts.CommitFiles.GetSelected()
if node == nil {
return nil
}
@@ -74,7 +74,7 @@ func (gui *Gui) handleToggleSelectionForPatch() error {
}
// add range of lines to those set for the file
- node := gui.State.Contexts.CommitFiles.GetSelectedFileNode()
+ node := gui.State.Contexts.CommitFiles.GetSelected()
if node == nil {
return nil
}