From 6f4a536421f3a487454c7858371c4d1464ebd544 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 27 Mar 2025 16:51:54 -0300 Subject: [PATCH] Update viewport/viewport.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- viewport/viewport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewport/viewport.go b/viewport/viewport.go index 4478cde..4e6de76 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -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 {