style tweak

This commit is contained in:
Maxime Coste 2016-08-30 23:23:07 +01:00
parent 8b02bb749d
commit 3831117bc7

View File

@ -912,7 +912,7 @@ void define_command(const ParametersParser& parser, Context& context, const Shel
auto first = matches.begin(), last = matches.end(); auto first = matches.begin(), last = matches.end();
std::make_heap(first, last, greater); std::make_heap(first, last, greater);
CandidateList res; CandidateList res;
while(res.size() < max_count and first != last) while (res.size() < max_count and first != last)
{ {
if (res.empty() or res.back() != first->candidate()) if (res.empty() or res.back() != first->candidate())
res.push_back(first->candidate().str()); res.push_back(first->candidate().str());