Fix release list opening scrolled into the middle
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user