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 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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user