mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-30 07:04:32 +03:00
sort command names completion candidates
This commit is contained in:
parent
f972428823
commit
589aad5f9c
@ -208,6 +208,7 @@ Completions CommandManager::complete(const String& command_line, size_t cursor_p
|
|||||||
if (command.first.substr(0, prefix.length()) == prefix)
|
if (command.first.substr(0, prefix.length()) == prefix)
|
||||||
result.candidates.push_back(command.first);
|
result.candidates.push_back(command.first);
|
||||||
}
|
}
|
||||||
|
std::sort(result.candidates.begin(), result.candidates.end());
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user