Skip to content

Commit

Permalink
If view lines are larger than window, make sure that the last line is…
Browse files Browse the repository at this point in the history
… shown in window
  • Loading branch information
dsouzae committed Jul 3, 2020
1 parent 30fff87 commit 1cecd8e
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 @@ -332,7 +332,7 @@ func (v *View) draw() error {
}

if v.Autoscroll && len(v.viewLines) > maxY {
v.oy = len(v.viewLines) - maxY
v.oy = len(v.viewLines) - maxY - 1
}
y := 0
for i, vline := range v.viewLines {
Expand Down

0 comments on commit 1cecd8e

Please sign in to comment.