Skip to content

Commit 2cd348a

Browse files
committed
fix empty scope issue
1 parent 23a23a7 commit 2cd348a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

list/list.go

+3
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ func (l *List) PageDown() {
182182

183183
if cursor == l.cursor {
184184
l.cursor = len(l.scope) - 1
185+
if l.cursor < 0 {
186+
l.cursor = 0
187+
}
185188
} else if cursor > l.cursor {
186189
l.cursor = cursor
187190
}

0 commit comments

Comments
 (0)