diff --git a/src/atom-application.coffee b/src/atom-application.coffee index 64e6dbdcd..1d96d6c6e 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -193,7 +193,9 @@ class AtomApplication @openPath(pathToOpen, pidToKillWhenClosed) for pathToOpen in pathsToOpen openPath: (pathToOpen, pidToKillWhenClosed) -> - if openedWindow = @windowForPath(pathToOpen) + existingWindow = @windowForPath(pathToOpen) unless pidToKillWhenClosed + if existingWindow + openedWindow = existingWindow openedWindow.focus() openedWindow.sendCommand('window:open-path', pathToOpen) else