mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
Update viewport/viewport.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
b1cef26c7d
commit
6f4a536421
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user