Store shell-candidates completions in the Completion memory domain

This commit is contained in:
Maxime Coste 2017-02-03 13:42:47 +00:00
parent 99b7d83ca3
commit c793ef3aa8

View File

@ -958,7 +958,7 @@ void define_command(const ParametersParser& parser, Context& context, const Shel
else if (auto shell_cmd_opt = parser.get_switch("shell-candidates"))
{
String shell_cmd = shell_cmd_opt->str();
Vector<std::pair<String, UsedLetters>> candidates;
Vector<std::pair<String, UsedLetters>, MemoryDomain::Completion> candidates;
int token = -1;
completer = [shell_cmd, candidates, token](
const Context& context, CompletionFlags flags, CommandParameters params,