Skip to content

Commit 0c27b0a

Browse files
committed
make menu inapplicable only for quick completion
1 parent c3679bb commit 0c27b0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/engine.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,10 @@ impl Reedline {
967967
return Ok(EventStatus::Handled);
968968
}
969969

970-
if menu.get_values().is_empty() {
970+
if self.quick_completions
971+
&& menu.can_quick_complete()
972+
&& menu.get_values().is_empty()
973+
{
971974
menu.menu_event(MenuEvent::Deactivate);
972975
return Ok(EventStatus::Inapplicable);
973976
}

0 commit comments

Comments
 (0)