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

initial commit message counter

This commit is contained in:
Dawid Dziurla
2018-09-02 17:08:59 +02:00
parent f777c60ea4
commit 98763e98cb
4 changed files with 68 additions and 6 deletions

View File

@ -262,6 +262,16 @@ func (gui *Gui) layout(g *gocui.Gui) error {
commitMessageView.Title = gui.Tr.SLocalize("CommitMessage")
commitMessageView.FgColor = gocui.ColorWhite
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
}
}