Completion: sort results in complete_filename
This commit is contained in:
parent
f673f3c334
commit
be5cf92367
|
@ -4,6 +4,7 @@
|
|||
#include "utils.hh"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <algorithm>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user