From 694b499b2143c3f054fdaaf26562405277c3c786 Mon Sep 17 00:00:00 2001 From: John Barnette Date: Thu, 14 Mar 2013 16:53:33 -0700 Subject: [PATCH] Only relativize stuff under the project root --- src/app/project.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/project.coffee b/src/app/project.coffee index fac99ce8d..f1a6f6634 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -87,6 +87,7 @@ class Project fs.absolute filePath relativize: (fullPath) -> + return fullPath unless fullPath.lastIndexOf(@getPath()) is 0 fullPath.replace(@getPath(), "").replace(/^\//, '') getSoftTabs: -> @softTabs