From be5cf9236750eb1fd38f0dd3ebc4da2af1fd87ab Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 15 Jan 2012 02:02:18 +0000 Subject: [PATCH] Completion: sort results in complete_filename --- src/completion.cc | 2 ++ 1 file changed, 2 insertions(+) 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; }