Allow for more than one empty buffer to be open

Closes #679
This commit is contained in:
Ben Ogle
2013-09-23 17:27:41 -07:00
parent ef3ccc992b
commit 87fb07e657
2 changed files with 7 additions and 1 deletions

View File

@@ -173,7 +173,8 @@ class RootView extends View
initialLine = options.initialLine
path = project.relativize(path)
if activePane = @getActivePane()
editSession = activePane.itemForUri(path) ? project.open(path, {initialLine})
editSession = activePane.itemForUri(path)
editSession = project.open(path, {initialLine}) unless path and editSession
activePane.showItem(editSession)
else
editSession = project.open(path, {initialLine})