diff --git a/autocomplete.d b/autocomplete.d index ca38542..0f65a23 100644 --- a/autocomplete.d +++ b/autocomplete.d @@ -326,10 +326,10 @@ struct AutoComplete foreach (path; context.importDirectories) { stderr.writeln("Searching for ", path, "/", part); - if (!exists(path ~ "/" ~ part)) + if (!exists(buildPath(path, part)) continue; stderr.writeln("found it"); - foreach (DirEntry dirEntry; dirEntries(path ~ "/" ~ part, + foreach (DirEntry dirEntry; dirEntries(buildPath(path, part), SpanMode.shallow)) { if (dirEntry.isDir) diff --git a/main.d b/main.d index 6351065..3d9aed3 100644 --- a/main.d +++ b/main.d @@ -219,7 +219,5 @@ void main(string[] args) m.writeCtagsTo(stdout, ""); } } - } } -