diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-10-30 20:50:21 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-05 19:22:01 +1100 |
commit | 4f2c42ea4750217cb5830a4c381ae14f903ec677 (patch) | |
tree | 7c573fc12456014499e1895f40019aefff5ceefa /vendor/github.com | |
parent | 820f3d5cbb556f1c117906e4174f35ecf71e2ed5 (diff) |
bump gocui
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/gui.go | 3 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/view.go | 3 |
2 files changed, 0 insertions, 6 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 |