Fixed error for the latest version of gocui

This commit is contained in:
hirokazu yamada
2016-10-24 15:36:16 +09:00
parent 6f012fc9c5
commit 686e9f07a9
2 changed files with 36 additions and 36 deletions

View File

@@ -48,14 +48,14 @@ func RunTui(jsonDirName string) subcommands.ExitStatus {
return subcommands.ExitFailure
}
g := gocui.NewGui()
if err := g.Init(); err != nil {
g, err := gocui.NewGui()
if err != nil {
log.Errorf("%s", err)
return subcommands.ExitFailure
}
defer g.Close()
g.SetLayout(layout)
g.SetManagerFunc(layout)
if err := keybindings(g); err != nil {
log.Errorf("%s", err)
return subcommands.ExitFailure