Skip to content

Commit

Permalink
project: fix initial directory list for recursive .ccls
Browse files Browse the repository at this point in the history
Fix #717
  • Loading branch information
MaskRay committed Nov 7, 2020
1 parent a3c5d4a commit 68d6e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68d6e41

Please sign in to comment.