diff --git a/mouse.go b/mouse.go index 5c2bcaf..d0d1fda 100644 --- a/mouse.go +++ b/mouse.go @@ -2,6 +2,7 @@ package tea import "errors" +// MouseMsg contains information about a mouse event. type MouseMsg MouseEvent // MouseEvent represents a mouse event, which could be a click, a scroll wheel diff --git a/renderer.go b/renderer.go index 0b6f221..96f1da6 100644 --- a/renderer.go +++ b/renderer.go @@ -208,7 +208,7 @@ func (r *renderer) setIgnoredLines(from int, to int) { cursorUp(out) } moveCursor(out, r.linesRendered, 0) // put cursor back - r.out.Write(out.Bytes()) + _, _ = r.out.Write(out.Bytes()) } } @@ -252,7 +252,7 @@ func (r *renderer) insertTop(lines []string, topBoundary, bottomBoundary int) { // Move cursor back to where the main rendering routine expects it to be moveCursor(b, r.linesRendered, 0) - r.out.Write(b.Bytes()) + _, _ = r.out.Write(b.Bytes()) } // insertBottom effectively scrolls down. It inserts lines at the bottom of @@ -278,7 +278,7 @@ func (r *renderer) insertBottom(lines []string, topBoundary, bottomBoundary int) // Move cursor back to where the main rendering routine expects it to be moveCursor(b, r.linesRendered, 0) - r.out.Write(b.Bytes()) + _, _ = r.out.Write(b.Bytes()) } // handleMessages handles internal messages for the renderer.