diff --git a/src/engine.rs b/src/engine.rs index 6e0b6c33..fdddc895 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -967,7 +967,10 @@ impl Reedline { return Ok(EventStatus::Handled); } - if menu.get_values().is_empty() { + if self.quick_completions + && menu.can_quick_complete() + && menu.get_values().is_empty() + { menu.menu_event(MenuEvent::Deactivate); return Ok(EventStatus::Inapplicable); }