summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-29 10:35:12 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-29 11:37:29 +1100
commitd90d9d7330ff5ba5161c70d6b8e11cb7b87c9b47 (patch)
treeb972890726ff846b5fdd5f7d659c0f31a7bf2aca /pkg/gui/gui.go
parenta8db672ffbeba92a32ad34f475760c78aa73303e (diff)
reset state on each Run() call
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index db866356f..9e2130628 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -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