diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index a8a2ada13..6b4bf73bb 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -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)