Skip to content

Commit

Permalink
Fixed movement when displaying above line 0
Browse files Browse the repository at this point in the history
​
Fixed the number of lines to move when displaying minus lines.
  • Loading branch information
noborus committed Jan 1, 2024
1 parent d050cd5 commit a4322dc
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 a4322dc

Please sign in to comment.