mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Only relativize stuff under the project root
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user