Update viewport/viewport.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2025-03-27 16:51:54 -03:00
committed by GitHub
co-authored by Copilot
parent b1cef26c7d
commit 6f4a536421
+1 -1
View File
@@ -514,7 +514,7 @@ func (m *Model) ScrollDown(n int) {
m.hiIdx = m.findNearedtMatch()
}
// ScrollUp moves the view down by the given number of lines. Returns the new
// ScrollUp moves the view up by the given number of lines. Returns the new
// lines to show.
func (m *Model) ScrollUp(n int) {
if m.AtTop() || n == 0 || len(m.lines) == 0 {