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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 0 additions and 2 deletions

View File

@ -207,7 +207,6 @@ func (r *renderer) insertTop(lines []string, topBoundary, bottomBoundary int) {
r.mtx.Lock() r.mtx.Lock()
defer r.mtx.Unlock() defer r.mtx.Unlock()
topBoundary += 1
b := new(bytes.Buffer) b := new(bytes.Buffer)
changeScrollingRegion(b, topBoundary, bottomBoundary) changeScrollingRegion(b, topBoundary, bottomBoundary)
@ -232,7 +231,6 @@ func (r *renderer) insertBottom(lines []string, topBoundary, bottomBoundary int)
r.mtx.Lock() r.mtx.Lock()
defer r.mtx.Unlock() defer r.mtx.Unlock()
topBoundary += 1
b := new(bytes.Buffer) b := new(bytes.Buffer)
changeScrollingRegion(b, topBoundary, bottomBoundary) changeScrollingRegion(b, topBoundary, bottomBoundary)