1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

reset state on each Run() call

This commit is contained in:
Jesse Duffield
2020-03-29 10:35:12 +11:00
parent a8db672ffb
commit d90d9d7330
4 changed files with 15 additions and 5 deletions

View File

@ -283,6 +283,8 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *comma
// Run setup the gui with keybindings and start the mainloop
func (gui *Gui) Run() error {
gui.resetState()
g, err := gocui.NewGui(gocui.Output256, OverlappingEdges)
if err != nil {
return err