Small nit
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 2m0s
Cargo CI / Lint (pull_request) Successful in 1m12s

This commit is contained in:
Wojciech Kozlowski 2024-08-31 14:37:36 +02:00
parent acf03b1cd4
commit 753fbe863d

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));
}