summaryrefslogtreecommitdiffstats
path: root/pkg/gui/line_by_line_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-23 10:17:17 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit4198bbae6cc3747ee45d47648acab2b91f121272 (patch)
tree67081497955b0eda5c37ac28afc8ec7f8ee22d30 /pkg/gui/line_by_line_panel.go
parentade54b38c12079ba133e9c8810af2a3760afb0f3 (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.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 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)