diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 16:33:31 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:32:13 +1100 |
commit | 131113b0657eea84f842e2c1e24d0ab1150505e5 (patch) | |
tree | f22c3e0db6ff43655a87bd30aac6f5406ecfab78 /pkg/gui/line_by_line_panel.go | |
parent | e85310c0a92a89167530241bdc3fc5f66a48706d (diff) |
simplify how the context system works
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 3ad105b0c..5aeaeeba2 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -226,7 +226,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.State.Contexts["main"] == "patch-building" { + if gui.State.Context == "patch-building" { filename := gui.State.CommitFiles[gui.State.Panels.CommitFiles.SelectedLine].Name includedLineIndices = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename) } |