fix complete_filename
This commit is contained in:
parent
96c6adad78
commit
db1e2f2d86
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user