Skip to content

Commit e372084

Browse files
committed
make menu inapplicable only for quick completion
1 parent 2a7a649 commit e372084

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
@@ -879,7 +879,10 @@ impl Reedline {
879879
return Ok(EventStatus::Handled);
880880
}
881881

882-
if menu.get_values().is_empty() {
882+
if self.quick_completions
883+
&& menu.can_quick_complete()
884+
&& menu.get_values().is_empty()
885+
{
883886
menu.menu_event(MenuEvent::Deactivate);
884887
return Ok(EventStatus::Inapplicable);
885888
}

0 commit comments

Comments
 (0)