From db1e2f2d866dd56bd34509be5059c4d9aad54a6e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 28 Aug 2012 14:10:05 +0200 Subject: [PATCH] fix complete_filename --- src/completion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completion.cc b/src/completion.cc index 319da0f75..c7d3bbe14 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); } }