summaryrefslogtreecommitdiffstats
path: root/pkg/gui/line_by_line_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-16 18:17:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commitfd8a455aff852bdda6daaea82287a10fe882c97c (patch)
tree46c5adb8d2c0196fb3f02bbf91c9f1dea628a754 /pkg/gui/line_by_line_panel.go
parented4574bda9f7f3b385f72cd5f7156d47bc28d0ea (diff)
small things
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 79b4d780a..1aedcabc1 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.currentContext().GetKey() {
+ switch gui.State.MainContext {
case "patch-building":
filename = gui.getSelectedCommitFileName()
case "staging":