forked from Mirrors/bubbletea
We actually never needed to correct the top boundary
This commit is contained in:
parent
6e75920859
commit
eff99294e1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue