diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-28 14:10:05 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-28 14:10:05 +0200 |
| commit | db1e2f2d866dd56bd34509be5059c4d9aad54a6e (patch) | |
| tree | dfaec6c516b0a4f2d6ec1a501a30eefc905efce5 /src/completion.cc | |
| parent | 96c6adad785b98e9a5156ce6295e88a6d5fba551 (diff) | |
fix complete_filename
Diffstat (limited to 'src/completion.cc')
| -rw-r--r-- | src/completion.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion.cc b/src/completion.cc index 319da0f7..c7d3bbe1 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -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); } } |
