Small nit
This commit is contained in:
parent
acf03b1cd4
commit
753fbe863d
@ -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