diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 10:17:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 4198bbae6cc3747ee45d47648acab2b91f121272 (patch) | |
tree | 67081497955b0eda5c37ac28afc8ec7f8ee22d30 /pkg/gui/line_by_line_panel.go | |
parent | ade54b38c12079ba133e9c8810af2a3760afb0f3 (diff) |
ensure there is always a current context
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 a70b2e4ff..e06a685a6 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -234,7 +234,7 @@ func (gui *Gui) refreshMainViewForLineByLine() error { var includedLineIndices []int // I'd prefer not to have knowledge of contexts using this file but I'm not sure // how to get around this - if gui.currentContextKey() == gui.Contexts.PatchBuilding.Context.GetKey() { + if gui.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() { filename := gui.getSelectedCommitFileName() var err error includedLineIndices, err = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename) |