Skip to content

Commit 68d6e41

Browse files
committed
project: fix initial directory list for recursive .ccls
Fix #717
1 parent a3c5d4a commit 68d6e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void loadDirectoryListing(ProjectProcessor &proc, const std::string &root,
252252

253253
auto getDotCcls = [&root, &folder](std::string cur) {
254254
while (!(cur = sys::path::parent_path(cur)).empty()) {
255-
auto it = folder.dot_ccls.find(cur);
255+
auto it = folder.dot_ccls.find(cur + '/');
256256
if (it != folder.dot_ccls.end())
257257
return it->second;
258258
std::string normalized = normalizePath(cur);

0 commit comments

Comments
 (0)