diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-19 08:26:22 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 9a2dc3fe150a03ccb4f086b05d8a8249c9e6c37f (patch) | |
tree | 7dd6da3dbf1907a04b1b865973f9dfdfd0ccc10e /pkg/gui/line_by_line_panel.go | |
parent | f0c3d3fc4d43f5b7487540d5c0356f62b3b2997d (diff) |
stop crash due to context stack not being initialized
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 6bec51308..4ae8e741a 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -234,7 +234,7 @@ func (gui *Gui) refreshMainView() 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.currentContext().GetKey() == gui.Contexts.PatchBuilding.Context.GetKey() { + if gui.currentContextKey() == gui.Contexts.PatchBuilding.Context.GetKey() { filename := gui.getSelectedCommitFileName() includedLineIndices = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename) } |