summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commits_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-09-25 20:11:36 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-09-25 20:11:36 +1000
commit0d33a746ba679a2ca23066aa9bea3305506aae14 (patch)
tree5d6ceaa5334f421fa72cfa1214e19985ae9cfdb2 /pkg/gui/commits_panel.go
parentf3fc98a3d03756ec94bcad955eda268fddb3613a (diff)
parent17d7bcdeafe35d60dd4ebb553a6c46a716e5df92 (diff)
Merge branch 'feature/informative-commit-colors' of https://github.com/jesseduffield/lazygit into feature/informative-commit-colors
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r--pkg/gui/commits_panel.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go
index a86401ebf..ee7f191a7 100644
--- a/pkg/gui/commits_panel.go
+++ b/pkg/gui/commits_panel.go
@@ -74,7 +74,10 @@ func (gui *Gui) handleCommitSelect(g *gocui.Gui, v *gocui.View) error {
}
return gui.renderString(g, "main", gui.Tr.SLocalize("NoCommitsThisBranch"))
}
- commitText := gui.GitCommand.Show(commit.Sha)
+ commitText, err := gui.GitCommand.Show(commit.Sha)
+ if err != nil {
+ return err
+ }
return gui.renderString(g, "main", commitText)
}