Skip to content

Commit

Permalink
make menu inapplicable only for quick completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdillah committed Jul 21, 2023
1 parent 2a7a649 commit e372084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,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);
}
Expand Down

0 comments on commit e372084

Please sign in to comment.