diff --git a/src/root-view.coffee b/src/root-view.coffee index 599e9b94c..a4b2a202f 100644 --- a/src/root-view.coffee +++ b/src/root-view.coffee @@ -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})