summaryrefslogtreecommitdiffstats
path: root/pkg/gui/line_by_line_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-16 14:16:28 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit6fb83b740b9b3030d6b6e6ed09f895a7c6a4839d (patch)
treea7dbd7c5c21b5b4ad756f54ad014ea330dd90219 /pkg/gui/line_by_line_panel.go
parent7f89113245307be8a1642105014e9ce51a47210f (diff)
WIP
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r--pkg/gui/line_by_line_panel.go2
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 b090103cb..6fa3c8b45 100644
--- a/pkg/gui/line_by_line_panel.go
+++ b/pkg/gui/line_by_line_panel.go
@@ -332,7 +332,7 @@ func (gui *Gui) handleEscapeLineByLinePanel() {
func (gui *Gui) handleOpenFileAtLine() error {
// again, would be good to use inheritance here (or maybe even composition)
var filename string
- switch gui.State.MainContext {
+ switch gui.currentContext().GetKey() {
case "patch-building":
filename = gui.getSelectedCommitFileName()
case "staging":