Change escaping method for command completion
This commit is contained in:
parent
8ee2aa9ba7
commit
c4f0c4dee6
|
@ -580,10 +580,7 @@ Completions CommandManager::complete(const Context& context,
|
||||||
completions.end += start;
|
completions.end += start;
|
||||||
|
|
||||||
for (auto& candidate : completions.candidates)
|
for (auto& candidate : completions.candidates)
|
||||||
{
|
candidate = escape(candidate, " \t;", '\\');
|
||||||
if (candidate.find_first_of(" \t;\"'") != String::npos)
|
|
||||||
candidate = '"' + escape(candidate, '"', '\\') + '"';
|
|
||||||
}
|
|
||||||
|
|
||||||
return completions;
|
return completions;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user