1
1
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:
Maxime Coste 2012-06-02 15:49:56 +00:00
parent f972428823
commit 589aad5f9c

View File

@ -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;
} }