diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/gui.go | 3 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/view.go | 3 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/gui.go b/vendor/github.com/jesseduffield/gocui/gui.go index e917b3cf0..970ef48f9 100644 --- a/vendor/github.com/jesseduffield/gocui/gui.go +++ b/vendor/github.com/jesseduffield/gocui/gui.go @@ -164,9 +164,6 @@ func (g *Gui) Rune(x, y int) (rune, error) { // ErrUnknownView is returned, which allows to assert if the View must // be initialized. It checks if the position is valid. func (g *Gui) SetView(name string, x0, y0, x1, y1 int, overlaps byte) (*View, error) { - if x0 >= x1 { - return nil, errors.New("invalid dimensions") - } if name == "" { return nil, errors.New("invalid name") } diff --git a/vendor/github.com/jesseduffield/gocui/view.go b/vendor/github.com/jesseduffield/gocui/view.go index 35ffa71ba..cd4c12f19 100644 --- a/vendor/github.com/jesseduffield/gocui/view.go +++ b/vendor/github.com/jesseduffield/gocui/view.go @@ -217,9 +217,6 @@ func (v *View) Cursor() (x, y int) { // implement Horizontal and Vertical scrolling with just incrementing // or decrementing ox and oy. func (v *View) SetOrigin(x, y int) error { - if x < 0 || y < 0 { - return errors.New("invalid point") - } v.ox = x v.oy = y return nil diff --git a/vendor/modules.txt b/vendor/modules.txt index 448b197f5..ba5402c0e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -78,7 +78,7 @@ github.com/integrii/flaggy github.com/jbenet/go-context/io # github.com/jesseduffield/go-getter v0.0.0-20180822080847-906e15686e63 github.com/jesseduffield/go-getter -# github.com/jesseduffield/gocui v0.3.1-0.20190908012510-092b2290ee54 +# github.com/jesseduffield/gocui v0.3.1-0.20191030094731-3cf1932858a3 github.com/jesseduffield/gocui # github.com/jesseduffield/pty v0.0.0-20181218102224-02db52c7e406 github.com/jesseduffield/pty |