fixed search result nav

This commit is contained in:
Ultradesu
2026-07-16 20:49:53 +03:00
parent 3df41cfc3b
commit 691abe599b
+3 -1
View File
@@ -1340,7 +1340,9 @@ fn move_selection(state: &mut AppState, dx: isize, dy: isize) {
refresh_track_selection_cursor(state);
}
Some(GlobalView::Search { cursor }) => {
let total = state.search.results.as_ref().map_or(0, |r| r.len()) as isize;
// Local results plus the federated section below them.
let total = (state.search.results.as_ref().map_or(0, |r| r.len())
+ state.search.fed_tracks.len()) as isize;
if total == 0 {
return;
}