fix error when selecting 'unmatched' while filter is active

This commit is contained in:
Robin Appelman 2025-05-28 17:09:56 +02:00
commit 4af0bcb512

View file

@ -53,7 +53,7 @@ impl<'a> MatchListState<'a> {
.iter()
.filter(|log_match| log_match.matches(app, &self.filter))
.nth(selected - 1)
.expect("filtered select out of bounds")
.unwrap_or(&app.unmatched)
}
} else {
&app.unmatched