return complete directly

pull/88/head
Takayuki Maeda 3 years ago
parent 1011751c5c
commit 8cb0b12944

@ -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();

Loading…
Cancel
Save