diff options
author | Michael Muré <batolettre@gmail.com> | 2022-02-15 21:52:36 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-02-15 21:52:36 +0100 |
commit | 5ecfcb0e6ef7a7153b3bb6f53e939805c4e8f34d (patch) | |
tree | 08a64a12be7e70591cc0a47a5d6d5dbe9c2da652 /termui/msg_popup.go | |
parent | 44f61b66775e77fd8b42ba3ea57b2c323463b725 (diff) | |
download | git-bug-5ecfcb0e6ef7a7153b3bb6f53e939805c4e8f34d.tar.gz |
update gocui
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 } |