diff --git a/src/project.cc b/src/project.cc index d9bbec1e..e50190eb 100644 --- a/src/project.cc +++ b/src/project.cc @@ -252,7 +252,7 @@ void loadDirectoryListing(ProjectProcessor &proc, const std::string &root, auto getDotCcls = [&root, &folder](std::string cur) { while (!(cur = sys::path::parent_path(cur)).empty()) { - auto it = folder.dot_ccls.find(cur); + auto it = folder.dot_ccls.find(cur + '/'); if (it != folder.dot_ccls.end()) return it->second; std::string normalized = normalizePath(cur);