Skip to content

Commit

Permalink
[fix] followup of gocui dependency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Aug 19, 2017
1 parent 673749d commit abb72a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit abb72a2

Please sign in to comment.