summaryrefslogtreecommitdiffstats
path: root/pkg/gui/line_by_line_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-22 16:46:19 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit12bf851c7d595f077260be03c8e298646dd333ce (patch)
tree2efce3551a0e316c27008b62c3129ca729196847 /pkg/gui/line_by_line_panel.go
parentc837c54c39d4e15af3f26df646f550436b35d505 (diff)
faster patch manager
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r--pkg/gui/line_by_line_panel.go6
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)