This commit is contained in:
probablycorey 2013-09-25 13:44:50 -07:00
parent 935ac5c1a0
commit 9006ab95fc

View File

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