Use a queue to communicate matches from browse to matches #207

Merged
wojtek merged 2 commits from 202---use-a-queue-to-communicate-matches-from-browse-to-matches into main 2024-08-31 14:42:46 +02:00
Showing only changes of commit 753fbe863d - Show all commits

View File

@ -153,12 +153,8 @@ impl IAppInteractMatches for AppMachine<AppMatches> {
let result = index.saturating_add(1);
let to = cmp::min(
result,
self.state
.current
.as_ref()
.expect("selected() implies current exists")
.len()
.saturating_sub(1),
// selected() implies current exists
self.state.current.as_ref().unwrap().len().saturating_sub(1),
);
self.state.state.list.select(Some(to));
}