fix(tui): select the first visible content row

This commit is contained in:
objz committed 2026-07-28 14:12:38 +02:00
1 parent 7839602bcc
commit 3077fb9b35
2 files changed
+28

No files matched your search

+3
View File
@@ -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