From 092b2290ee54052004865f798224d8853bbf239d Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 8 Sep 2019 11:25:10 +1000 Subject: [PATCH] swallow invalid point error in SetRune --- gui.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui.go b/gui.go index 0389f93..e917b3c 100644 --- a/gui.go +++ b/gui.go @@ -141,7 +141,8 @@ func (g *Gui) Size() (x, y int) { // the given colors. func (g *Gui) SetRune(x, y int, ch rune, fgColor, bgColor Attribute) error { if x < 0 || y < 0 || x >= g.maxX || y >= g.maxY { - return errors.New("invalid point") + // swallowing error because it's not that big of a deal + return nil } termbox.SetCell(x, y, ch, termbox.Attribute(fgColor), termbox.Attribute(bgColor)) return nil