diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 18:17:16 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | fd8a455aff852bdda6daaea82287a10fe882c97c (patch) | |
tree | 46c5adb8d2c0196fb3f02bbf91c9f1dea628a754 /pkg/gui/line_by_line_panel.go | |
parent | ed4574bda9f7f3b385f72cd5f7156d47bc28d0ea (diff) |
small things
WIP
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r-- | pkg/gui/line_by_line_panel.go | 2 |
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": |