From 43a2096852f4733b71b6445302357c58e2afc726 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Kevin Sawicki Date: Thu, 30 May 2013 12:02:56 -0700 Subject: [PATCH] Don't reuse windows when --wait flag is set --- src/atom-application.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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