Only set project paths if non-empty

This commit is contained in:
Kevin Sawicki
2013-03-11 19:45:01 -07:00
parent 66467b3571
commit 7c04aaf536

View File

@@ -37,7 +37,7 @@ module.exports =
unless @fuzzyFinderView
FuzzyFinderView = require 'fuzzy-finder/lib/fuzzy-finder-view'
@fuzzyFinderView = new FuzzyFinderView()
if @projectPaths? and not @fuzzyFinderView.projectPaths?
if @projectPaths?.length > 0 and not @fuzzyFinderView.projectPaths?
@fuzzyFinderView.projectPaths = @projectPaths
@fuzzyFinderView.reloadProjectPaths = false
@fuzzyFinderView