Completion: sort results in complete_filename

This commit is contained in:
Maxime Coste 2012-01-15 02:02:18 +00:00
parent f673f3c334
commit be5cf92367

View File

@ -4,6 +4,7 @@
#include "utils.hh" #include "utils.hh"
#include <dirent.h> #include <dirent.h>
#include <algorithm>
namespace Kakoune namespace Kakoune
{ {
@ -42,6 +43,7 @@ CandidateList complete_filename(const std::string& prefix,
result.push_back(name); result.push_back(name);
} }
} }
std::sort(result.begin(), result.end());
return result; return result;
} }