Fix release list opening scrolled into the middle

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:40:14 +02:00
co-authored by Claude Sonnet 5.5
parent 61373bbe45
commit b760d05e10
+5
View File
@@ -170,6 +170,11 @@ func (v *releasesView) render() {
v.table.SetSelectable(len(v.shown) > 0, false)
if len(v.shown) > 0 {
v.table.Select(max(selRow, 1), 0)
if selRow <= 1 {
// Otherwise the table can keep a stale scroll offset from the
// "searching" placeholder and show the middle of the list.
v.table.ScrollToBeginning()
}
} else {
v.table.Select(0, 0)
}