Only add folder span if project-relative path isn't empty

This commit is contained in:
Kevin Sawicki
2013-04-02 09:12:39 -07:00
parent 2e0a6af8ca
commit cb1d9af06e

View File

@@ -60,8 +60,8 @@ class FuzzyFinderView extends SelectList
typeClass = 'text-name'
@span fs.base(path), class: "file label #{typeClass}"
if folder = fs.directory(path)
@span " - #{project.relativize(folder)}/", class: 'directory'
if folder = project.relativize(fs.directory(path))
@span " - #{folder}/", class: 'directory'
openPath: (path) ->
rootView.open(path, {@allowActiveEditorChange}) if path