Use a queue to communicate matches from browse to matches #207
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user