1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-20 18:11:36 +03:00

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;
if (entry->d_type == DT_DIR)
name += '/';
if (fileprefix.length() != 0 and filename[0] != '.')
if (fileprefix.length() != 0 or filename[0] != '.')
result.push_back(name);
}
}