summaryrefslogtreecommitdiffstats
path: root/pkg/gui/line_by_line_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r--pkg/gui/line_by_line_panel.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go
index fd06d0f14..3d5536ec1 100644
--- a/pkg/gui/line_by_line_panel.go
+++ b/pkg/gui/line_by_line_panel.go
@@ -238,7 +238,7 @@ func (gui *Gui) refreshMainViewForLineByLine(state *lBlPanelState) error {
var includedLineIndices []int
// I'd prefer not to have knowledge of contexts using this file but I'm not sure
// how to get around this
- if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() {
+ if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.GetKey() {
filename := gui.getSelectedCommitFileName()
var err error
includedLineIndices, err = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename)
@@ -341,9 +341,9 @@ func (gui *Gui) handleOpenFileAtLine() error {
// again, would be good to use inheritance here (or maybe even composition)
var filename string
switch gui.State.MainContext {
- case gui.Contexts.PatchBuilding.Context.GetKey():
+ case gui.Contexts.PatchBuilding.GetKey():
filename = gui.getSelectedCommitFileName()
- case gui.Contexts.Staging.Context.GetKey():
+ case gui.Contexts.Staging.GetKey():
file := gui.getSelectedFile()
if file == nil {
return nil