fix(tui): select the first visible content row
This commit is contained in:
1 parent
7839602bcc
commit
3077fb9b35
2 files changed
+28
No files matched your search
@@ -1396,6 +1396,9 @@ pub fn render(
|
||||
return;
|
||||
}
|
||||
|
||||
if state.list_state.selected.is_none() {
|
||||
state.list_state.selected = Some(0);
|
||||
}
|
||||
let count = filtered.len();
|
||||
|
||||
// clamp selected so the ListView builder never gets an out-of-bounds index
|
||||
|
||||
Reference in new issue
Block a user