fix complete_filename

This commit is contained in:
Maxime Coste 2012-08-28 14:10:05 +02:00
parent 96c6adad78
commit db1e2f2d86

View File

@ -49,7 +49,7 @@ CandidateList complete_filename(const Context& context,
String name = dirprefix + filename; String name = dirprefix + filename;
if (entry->d_type == DT_DIR) if (entry->d_type == DT_DIR)
name += '/'; name += '/';
if (fileprefix.length() != 0 and filename[0] != '.') if (fileprefix.length() != 0 or filename[0] != '.')
result.push_back(name); result.push_back(name);
} }
} }