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 result = index.saturating_add(1);
let to = cmp::min( let to = cmp::min(
result, result,
self.state // selected() implies current exists
.current self.state.current.as_ref().unwrap().len().saturating_sub(1),
.as_ref()
.expect("selected() implies current exists")
.len()
.saturating_sub(1),
); );
self.state.state.list.select(Some(to)); self.state.state.list.select(Some(to));
} }