diff options
Diffstat (limited to 'termui/input_popup.go')
-rw-r--r-- | termui/input_popup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/termui/input_popup.go b/termui/input_popup.go index 3576ba2f..3ff9b5bf 100644 --- a/termui/input_popup.go +++ b/termui/input_popup.go @@ -3,7 +3,7 @@ package termui import ( "io/ioutil" - "github.com/MichaelMure/gocui" + "github.com/awesome-gocui/gocui" ) const inputPopupView = "inputPopupView" @@ -46,9 +46,9 @@ func (ip *inputPopup) layout(g *gocui.Gui) error { x0 := (maxX - width) / 2 y0 := (maxY - height) / 2 - v, err := g.SetView(inputPopupView, x0, y0, x0+width, y0+height) + v, err := g.SetView(inputPopupView, x0, y0, x0+width, y0+height, 0) if err != nil { - if err != gocui.ErrUnknownView { + if !gocui.IsUnknownView(err) { return err } |