Skip to content

Commit

Permalink
Try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reubeno committed May 21, 2024
1 parent 293ce41 commit d213418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shell/src/builtins/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,11 @@ impl BuiltinCommand for CompGenCommand {
.await?;

match result {
completion::CompletionResult::Candidates(candidates, _options) => {
completion::CompletionResult::Candidates(mut candidates, _options) => {
// First sort.
candidates.sort();

// Now list.
for candidate in candidates {
writeln!(context.stdout(), "{candidate}")?;
}
Expand Down

0 comments on commit d213418

Please sign in to comment.