Remove scroll debug statements. Add one extra element to browser listview

so that we have a partial item displayed at the bottom and not a blank space.
This commit is contained in:
gmp
2026-06-01 11:58:57 -04:00
parent 6709f52e0f
commit dc80c8a8e8
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ func computeVisibleEntries(state *BrowserState) []ui.ListItem {
}
startIndex := state.GetScrollIndex()
endIndex := startIndex + state.VisibleCount
// show one past the "visible count" for a partial view of the next item
endIndex := startIndex + state.VisibleCount + 1
if endIndex > state.TotalEntries {
endIndex = state.TotalEntries
}