Skip to content

Commit

Permalink
Merge pull request #97 from dankox/fix/incorrect-autorscroll-wrap
Browse files Browse the repository at this point in the history
Fix incorrect scrolling when `Wrap` is set to `true`
  • Loading branch information
mjarkk authored Jul 20, 2021
2 parents 55cef8a + 4bc2c00 commit 36a6087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 36a6087

Please sign in to comment.