1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

Shell: Accept empty set of completions from program completer

Falling back to default completions goes directly against the users'
wishes :P
This commit is contained in:
Ali Mohammad Pur 2023-12-01 19:23:28 +03:30
parent 189d1e8291
commit fde174645a

View file

@ -2076,9 +2076,6 @@ ErrorOr<Vector<Line::CompletionSuggestion>> Shell::complete_via_program_itself(s
tcsetpgrp(STDOUT_FILENO, pgid);
tcsetpgrp(STDIN_FILENO, pgid);
if (suggestions.is_empty())
return Error::from_string_literal("No results");
return suggestions;
}