diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-01-15 02:02:18 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-01-15 02:02:18 +0000 |
| commit | be5cf9236750eb1fd38f0dd3ebc4da2af1fd87ab (patch) | |
| tree | c0b3f2a63dc3470b57ca3841e0df1ade962a4ff5 /src | |
| parent | f673f3c3347e0ecc96bc4fd99a782500c03ae0c2 (diff) | |
Completion: sort results in complete_filename
Diffstat (limited to 'src')
| -rw-r--r-- | src/completion.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 <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; } |
