From eff99294e19e3132356f664fd84e96c16793624a Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 20 Jun 2020 14:47:57 -0400 Subject: [PATCH] We actually never needed to correct the top boundary --- renderer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/renderer.go b/renderer.go index d6de8d5..9deab8f 100644 --- a/renderer.go +++ b/renderer.go @@ -207,7 +207,6 @@ func (r *renderer) insertTop(lines []string, topBoundary, bottomBoundary int) { r.mtx.Lock() defer r.mtx.Unlock() - topBoundary += 1 b := new(bytes.Buffer) changeScrollingRegion(b, topBoundary, bottomBoundary) @@ -232,7 +231,6 @@ func (r *renderer) insertBottom(lines []string, topBoundary, bottomBoundary int) r.mtx.Lock() defer r.mtx.Unlock() - topBoundary += 1 b := new(bytes.Buffer) changeScrollingRegion(b, topBoundary, bottomBoundary)