mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Only add folder span if project-relative path isn't empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user