diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-22 16:46:19 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 12bf851c7d595f077260be03c8e298646dd333ce (patch) | |
tree | 2efce3551a0e316c27008b62c3129ca729196847 /pkg/gui/line_by_line_panel.go | |
parent | c837c54c39d4e15af3f26df646f550436b35d505 (diff) |
faster patch manager
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r-- | pkg/gui/line_by_line_panel.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go index a65b699f8..a790b5a54 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -236,7 +236,11 @@ func (gui *Gui) refreshMainView() error { // how to get around this if gui.currentContextKey() == gui.Contexts.PatchBuilding.Context.GetKey() { filename := gui.getSelectedCommitFileName() - includedLineIndices = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename) + var err error + includedLineIndices, err = gui.GitCommand.PatchManager.GetFileIncLineIndices(filename) + if err != nil { + return err + } } colorDiff := state.PatchParser.Render(state.FirstLineIdx, state.LastLineIdx, includedLineIndices) |