We actually never needed to correct the top boundary

This commit is contained in:
Christian Rocha
2020-06-20 14:47:57 -04:00
parent 6e75920859
commit eff99294e1

View File

@@ -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)