Always open w/ one untitled buffer when no paths are given

Fixes #5607
This commit is contained in:
Max Brunsfeld
2015-02-18 11:17:47 -08:00
parent 39a225821e
commit 0eb742566f
3 changed files with 23 additions and 9 deletions

View File

@@ -96,7 +96,7 @@ class Atom extends Model
filename = 'spec'
when 'editor'
{initialPaths} = @getLoadSettings()
if initialPaths
if initialPaths?.length > 0
sha1 = crypto.createHash('sha1').update(initialPaths.join("\n")).digest('hex')
filename = "editor-#{sha1}"