From abb72a2d290db0c3e0366ca8ac2b57fa6c5e5224 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 19 Aug 2017 10:02:04 +0200 Subject: [PATCH] [fix] followup of gocui dependency changes --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index d08d52e..9d3f636 100644 --- a/commands.go +++ b/commands.go @@ -269,7 +269,7 @@ func openEditor(g *gocui.Gui, v *gocui.View, editor string) error { err = cmd.Run() // sync termbox to reset console settings // this is required because the external editor can modify the console - defer g.Execute(func(_ *gocui.Gui) error { + defer g.Update(func(_ *gocui.Gui) error { termbox.Sync() return nil })