From bcc5893957825c3084cd5cbe914120f14b170025 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 May 2022 22:02:46 +0100 Subject: [PATCH] Fix for not scrolling to all lines, changing screen.max calculation. --- screen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.go b/screen.go index d5f046b..23a68bb 100644 --- a/screen.go +++ b/screen.go @@ -208,7 +208,7 @@ func (screen *Screen) draw(str string, offset bool) { allLines = strings.Split(str, "\n") if offset { - screen.max = len(allLines) - screen.height + screen.max = len(allLines) - screen.height + screen.headerLine } // Write the lines being updated.