diff options
Diffstat (limited to 'termui/msg_popup.go')
-rw-r--r-- | termui/msg_popup.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/termui/msg_popup.go b/termui/msg_popup.go index d0e31634..c8db2df4 100644 --- a/termui/msg_popup.go +++ b/termui/msg_popup.go @@ -1,9 +1,10 @@ package termui import ( + "errors" "fmt" - "github.com/MichaelMure/go-term-text" + text "github.com/MichaelMure/go-term-text" "github.com/awesome-gocui/gocui" ) @@ -52,7 +53,7 @@ func (ep *msgPopup) layout(g *gocui.Gui) error { v, err := g.SetView(msgPopupView, x0, y0, x0+width, y0+height, 0) if err != nil { - if !gocui.IsUnknownView(err) { + if !errors.Is(err, gocui.ErrUnknownView) { return err } |