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 Oct 21, 2023
1 parent c3679bb commit 0c27b0a
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 @@ -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()

Check warning on line 972 in src/engine.rs

View check run for this annotation

Codecov / codecov/patch

src/engine.rs#L970-L972

Added lines #L970 - L972 were not covered by tests
{
menu.menu_event(MenuEvent::Deactivate);
return Ok(EventStatus::Inapplicable);
}
Expand Down

0 comments on commit 0c27b0a

Please sign in to comment.