From 8cb0b12944f25307ab3df52e86681a129572e4c9 Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Sun, 12 Sep 2021 15:08:25 +0900 Subject: [PATCH] return complete directly --- src/components/table_filter.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/table_filter.rs b/src/components/table_filter.rs index 2b1f436..3e5d182 100644 --- a/src/components/table_filter.rs +++ b/src/components/table_filter.rs @@ -197,9 +197,7 @@ impl Component for TableFilterComponent { // apply comletion candidates if key == self.key_config.enter { - if self.complete()?.is_consumed() { - return Ok(EventState::Consumed); - }; + return self.complete() } self.completion.selected_candidate();