Make changes from kevin for clarity

This commit is contained in:
Ben Ogle
2013-09-24 10:19:15 -07:00
parent 87fb07e657
commit 35ffdb8bf9
2 changed files with 4 additions and 3 deletions

View File

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