From 35abbafb7b9213cb56aac664f00f0b13fd7ea3ed Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 4 Feb 2024 16:20:41 +0330 Subject: [PATCH] Shell: Don't escape display/trailing texts when completing via programs This matches the shell's own behaviour regarding completions. --- Userland/Shell/Shell.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index f7b33802eb8..9b4a5f1e145 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -2054,8 +2054,6 @@ ErrorOr> 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) };