Skip to content

Commit

Permalink
Merge pull request #472 from noborus/fix-minus-line
Browse files Browse the repository at this point in the history
Fixed movement when displaying above line 0
  • Loading branch information
noborus authored Jan 1, 2024
2 parents d050cd5 + a4322dc commit 21ea58d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oviewer/move_vertical.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ func (m *Document) moveYDown(moveY int) {
}

// WrapMode
if m.topLN < 0 {
m.limitMoveDown(m.topLX, m.topLN+1)
return
}
lN := m.topLN + m.firstLine()
lX := m.topLX
listX := m.leftMostX(lN)
Expand Down

0 comments on commit 21ea58d

Please sign in to comment.