diff options
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r-- | helix-term/src/ui/picker.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index a46886ee..60828b6f 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -170,12 +170,9 @@ impl<T> Component for Picker<T> { return close_fn; } _ => { - match self.prompt.handle_event(event, cx) { - EventResult::Consumed(_) => { - // TODO: recalculate only if pattern changed - self.score(); - } - _ => (), + if let EventResult::Consumed(_) = self.prompt.handle_event(event, cx) { + // TODO: recalculate only if pattern changed + self.score(); } } } |