mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 08:51:46 +03:00
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;
|
||||
|
||||
for (auto& candidate : completions.candidates)
|
||||
{
|
||||
if (candidate.find_first_of(" \t;\"'") != String::npos)
|
||||
candidate = '"' + escape(candidate, '"', '\\') + '"';
|
||||
}
|
||||
candidate = escape(candidate, " \t;", '\\');
|
||||
|
||||
return completions;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user