// Custom includes
#include <boost/algorithm/string/predicate.hpp>
#include <boost/format.hpp>
+#include "../../Utils/range.hh"
//#include "ProgramOptions.mpp"
#define prefix_
std::string key (name.substr(b,e-b));
if (! cwd->hasChild(key)) {
DirectoryNode::ChildrenRange completions (cwd->completions(key));
- if (completions.size() == 1)
+ if (has_one_elt(completions))
key = completions.begin()->first;
else
continue;