From 7f8978f07a00d3571a6b91bf005b783f6257ec65 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 27 Mar 2013 19:11:27 -0700 Subject: [PATCH] absolute paths --- src/packages/fuzzy-finder/lib/load-paths-task.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/fuzzy-finder/lib/load-paths-task.coffee b/src/packages/fuzzy-finder/lib/load-paths-task.coffee index 60a716688..12ef322f9 100644 --- a/src/packages/fuzzy-finder/lib/load-paths-task.coffee +++ b/src/packages/fuzzy-finder/lib/load-paths-task.coffee @@ -15,15 +15,15 @@ class LoadPathsTask paths = [] isIgnored = (path) -> + path = path.substring(rootPath.length + 1) for segment in path.split('/') return true if _.contains(ignoredNames, segment) ignoreGitIgnoredFiles and git?.isPathIgnored(fs.join(rootPath, path)) onFile = (path) -> return if @aborted - path = path.substring(rootPath.length + 1) paths.push(path) unless isIgnored(path) onDirectory = (path) => - not @aborted and not isIgnored(path.substring(rootPath.length + 1)) + not @aborted and not isIgnored(path) onDone = => @callback(paths) unless @aborted