diff --git a/src/completion.cc b/src/completion.cc index c602cdcb..3ab9b92b 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -4,6 +4,7 @@ #include "utils.hh" #include +#include namespace Kakoune { @@ -42,6 +43,7 @@ CandidateList complete_filename(const std::string& prefix, result.push_back(name); } } + std::sort(result.begin(), result.end()); return result; }