mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 02:21:32 +03:00
Uniquify candidates in -shell-candidates mode
This commit is contained in:
parent
c8490c4e86
commit
75e9bbfa43
@ -866,6 +866,7 @@ void define_command(const ParametersParser& parser, Context& context, const Shel
|
||||
matches.push_back(match);
|
||||
}
|
||||
std::sort(matches.begin(), matches.end());
|
||||
matches.erase(std::unique(matches.begin(), matches.end()), matches.end());
|
||||
CandidateList res;
|
||||
for (auto& m : matches)
|
||||
res.push_back(m.candidate().str());
|
||||
|
Loading…
Reference in New Issue
Block a user