aboutsummaryrefslogtreecommitdiffstats
path: root/termui/input_popup.go
diff options
context:
space:
mode:
Diffstat (limited to 'termui/input_popup.go')
-rw-r--r--termui/input_popup.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/termui/input_popup.go b/termui/input_popup.go
index 3ff9b5bf..a60b1c04 100644
--- a/termui/input_popup.go
+++ b/termui/input_popup.go
@@ -1,6 +1,7 @@
package termui
import (
+ "errors"
"io/ioutil"
"github.com/awesome-gocui/gocui"
@@ -48,7 +49,7 @@ func (ip *inputPopup) layout(g *gocui.Gui) error {
v, err := g.SetView(inputPopupView, x0, y0, x0+width, y0+height, 0)
if err != nil {
- if !gocui.IsUnknownView(err) {
+ if !errors.Is(err, gocui.ErrUnknownView) {
return err
}