diff options
Diffstat (limited to 'termui/msg_popup.go')
-rw-r--r-- | termui/msg_popup.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/termui/msg_popup.go b/termui/msg_popup.go index 99180c99..236c16a2 100644 --- a/termui/msg_popup.go +++ b/termui/msg_popup.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/MichaelMure/go-term-text" - "github.com/MichaelMure/gocui" + "github.com/awesome-gocui/gocui" ) const msgPopupView = "msgPopupView" @@ -50,9 +50,9 @@ func (ep *msgPopup) layout(g *gocui.Gui) error { x0 := (maxX - width) / 2 y0 := (maxY - height) / 2 - v, err := g.SetView(msgPopupView, x0, y0, x0+width, y0+height) + v, err := g.SetView(msgPopupView, x0, y0, x0+width, y0+height, 0) if err != nil { - if err != gocui.ErrUnknownView { + if !gocui.IsUnknownView(err) { return err } |