diff --git a/view.go b/view.go index 4ba42e5..f22ddf0 100644 --- a/view.go +++ b/view.go @@ -572,7 +572,7 @@ func (v *View) draw() error { linesToRender := v.viewLines() if v.Autoscroll && len(linesToRender) > maxY { - v.oy = len(v.lines) - maxY + v.oy = len(linesToRender) - maxY - 1 } newCache := []cellCache{}