mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
fix error when selecting 'unmatched' while filter is active
This commit is contained in:
parent
f47002642d
commit
4af0bcb512
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ impl<'a> MatchListState<'a> {
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|log_match| log_match.matches(app, &self.filter))
|
.filter(|log_match| log_match.matches(app, &self.filter))
|
||||||
.nth(selected - 1)
|
.nth(selected - 1)
|
||||||
.expect("filtered select out of bounds")
|
.unwrap_or(&app.unmatched)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
&app.unmatched
|
&app.unmatched
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue