diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 14:16:28 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 6fb83b740b9b3030d6b6e6ed09f895a7c6a4839d (patch) | |
tree | a7dbd7c5c21b5b4ad756f54ad014ea330dd90219 /pkg/gui/line_by_line_panel.go | |
parent | 7f89113245307be8a1642105014e9ce51a47210f (diff) |
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 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": |