From 6cc4fadd63904bb00e65a6834c3a16799c7702c2 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 2 Aug 2018 11:40:46 +0200 Subject: [PATCH] Ctags: now excludes node_modules even when run path is empty --- src/ctags.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ctags.cc b/src/ctags.cc index 32f048e..90a4cc8 100644 --- a/src/ctags.cc +++ b/src/ctags.cc @@ -11,11 +11,10 @@ std::pair> Ctags::get_result(const boost::filesystem::path &path) { auto build = Project::Build::create(path); auto run_path = build->project_path; - std::string exclude; + std::string exclude = " --exclude=node_modules"; if(!run_path.empty()) { exclude += " --exclude=" + filesystem::get_relative_path(build->get_default_path(), run_path).string(); exclude += " --exclude=" + filesystem::get_relative_path(build->get_debug_path(), run_path).string(); - exclude += " --exclude=node_modules"; } else { boost::system::error_code ec;