From 68d6e4122dc2c011e38b2f6b1f430034f3be47b5 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 6 Nov 2020 18:55:01 -0800 Subject: [PATCH] project: fix initial directory list for recursive .ccls Fix #717 --- src/project.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);