1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

add commit count via gocui subtitle

This commit is contained in:
Jesse Duffield
2018-09-05 20:42:11 +10:00
parent 98763e98cb
commit 986774e5c7
7 changed files with 64 additions and 86 deletions

View File

@ -264,15 +264,6 @@ func (gui *Gui) layout(g *gocui.Gui) error {
commitMessageView.Editable = true
commitMessageView.Editor = gocui.EditorFunc(gui.simpleEditor)
}
if commitMessageCountView, err := g.SetView("commitMessageCount", 0, 0, width/2, height/2, 0); err != nil {
if err != gocui.ErrUnknownView {
return err
}
g.SetViewOnBottom("commitMessageCount")
commitMessageCountView.Frame = false
commitMessageCountView.BgColor = gocui.ColorDefault
commitMessageCountView.FgColor = gocui.ColorWhite
}
}
if appStatusView, err := g.SetView("appStatus", -1, optionsTop, width, optionsTop+2, 0); err != nil {