some refactoring in anticipation of the graph feature

This commit is contained in:
Jesse Duffield
2021-11-01 09:35:54 +11:00
parent 7a464ae5b7
commit 2fc1498517
40 changed files with 523 additions and 411 deletions

View File

@@ -395,9 +395,7 @@ func (gui *Gui) handleCommitPress() error {
prefix := rgx.ReplaceAllString(gui.getCheckedOutBranch().Name, prefixReplace)
gui.Views.CommitMessage.ClearTextArea()
gui.Views.CommitMessage.TextArea.TypeString(prefix)
gui.g.Update(func(*gocui.Gui) error {
return nil
})
gui.render()
}
gui.g.Update(func(g *gocui.Gui) error {