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

Shell: Don't escape display/trailing texts when completing via programs

This matches the shell's own behaviour regarding completions.
This commit is contained in:
Ali Mohammad Pur 2024-02-04 16:20:41 +03:30 committed by Ali Mohammad Pur
parent 8666b4fa87
commit 35abbafb7b

View file

@ -2054,8 +2054,6 @@ ErrorOr<Vector<Line::CompletionSuggestion>> Shell::complete_via_program_itself(s
auto invariant_offset = object.get_u64("invariant_offset"sv).value_or(0);
if (!object.get_bool("treat_as_code"sv).value_or(false)) {
completion_text = do_escape(EscapeMode::Bareword, completion_text, static_offset, invariant_offset);
trailing_text = escape_token(trailing_text, EscapeMode::Bareword);
display_text = escape_token(display_text, EscapeMode::Bareword);
}
Line::CompletionSuggestion suggestion { move(completion_text), move(trailing_text), move(display_text) };