This commit is contained in:
Kevin Sawicki
2013-04-04 16:29:15 -07:00
parent 062d07ada0
commit 8745ef8723

View File

@@ -97,11 +97,8 @@ class RootView extends View
changeFocus = options.changeFocus ? true
path = project.resolve(path) if path?
if activePane = @getActivePane()
if editSession = activePane.itemForUri(path)
activePane.showItem(editSession)
else
editSession = project.buildEditSession(path)
activePane.showItem(editSession)
editSession = activePane.itemForUri(path) ? project.buildEditSession(path)
activePane.showItem(editSession)
else
editSession = project.buildEditSession(path)
activePane = new Pane(editSession)