From 0c27b0a1ce4111180d5be6036921489ff1bc739e Mon Sep 17 00:00:00 2001 From: Hernawan Fa'iz Abdillah Date: Sat, 22 Jul 2023 06:51:09 +0700 Subject: [PATCH] make menu inapplicable only for quick completion --- src/engine.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }