mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Loading root view with no url opens an empty buffer
This commit is contained in:
@@ -48,6 +48,8 @@ class RootView extends View
|
||||
if path
|
||||
@project = new Project(fs.directory(path))
|
||||
@open(path) if fs.isFile(path)
|
||||
else
|
||||
@activeEditor().setBuffer(new Buffer())
|
||||
|
||||
open: (path) ->
|
||||
@activeEditor().setBuffer(@project.open(path))
|
||||
|
||||
Reference in New Issue
Block a user