From cb8236c9c22007eb622b7219c58d3342f1f53d50 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 3 Nov 2019 20:47:29 +0100 Subject: termui: migrate to awesome-gocui instead of the old fork I had --- termui/msg_popup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'termui/msg_popup.go') 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 } -- cgit