summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-23 09:36:45 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit628404e1143b04840f10d62f263ac0edc17ae2a7 (patch)
treef373eae5d7eafed3d3c5fe756df1b8f90067612a /pkg/gui
parent5638a400076709c85e5d1fff35c29bfbafa22781 (diff)
use actual keys
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/line_by_line_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go
index a790b5a54..51adde48a 100644
--- a/pkg/gui/line_by_line_panel.go
+++ b/pkg/gui/line_by_line_panel.go
@@ -336,9 +336,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 "patchBuilding":
+ case gui.Contexts.PatchBuilding.Context.GetKey():
filename = gui.getSelectedCommitFileName()
- case "staging":
+ case gui.Contexts.Staging.Context.GetKey():
file := gui.getSelectedFile()
if file == nil {
return nil