Skip to content

Commit

Permalink
Merge pull request jroimartin#29 from JLevconoks/readme_fix
Browse files Browse the repository at this point in the history
Fixed readme code example
  • Loading branch information
glvr182 authored Jul 12, 2019
2 parents 1178df4 + c6f7a7b commit f92294d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import (
)

func main() {
g, err := gocui.NewGui(gocui.OutputNormal)
g, err := gocui.NewGui(gocui.OutputNormal, false)
if err != nil {
log.Panicln(err)
}
Expand All @@ -87,7 +87,7 @@ func main() {

func layout(g *gocui.Gui) error {
maxX, maxY := g.Size()
if v, err := g.SetView("hello", maxX/2-7, maxY/2, maxX/2+7, maxY/2+2); err != nil {
if v, err := g.SetView("hello", maxX/2-7, maxY/2, maxX/2+7, maxY/2+2, 0); err != nil {
if !gocui.IsUnknownView(err) {
return err
}
Expand Down

0 comments on commit f92294d

Please sign in to comment.