Skip to content

Commit

Permalink
Merge pull request #231 from ymd38/master
Browse files Browse the repository at this point in the history
Fixed error for the latest version of gocui
  • Loading branch information
kotakanbe authored Oct 28, 2016
2 parents 6f012fc + 686e9f0 commit ce3ca64
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
60 changes: 30 additions & 30 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions report/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce3ca64

Please sign in to comment.