Skip to content

Commit 59334db

Browse files
committed
Fix list scrolling bug (#6)
1 parent 10ff101 commit 59334db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkgtop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func getPkgListEntries(pkgs []string) ([]*widgets.List,
235235
func scrollLists(lists []*widgets.List, amount int,
236236
row int, force bool) int {
237237
for i, l := range lists {
238-
if row != -1 && row < len(l.Rows) {
238+
if row != -1 && row <= len(l.Rows) {
239239
l.SelectedRow = row
240240
} else {
241241
l.ScrollAmount(amount)

0 commit comments

Comments
 (0)