From 63eb032472fa6e95a9c657860da33e7451533916 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 18 Feb 2014 14:39:02 -0800 Subject: [PATCH] Give precedence to `searchAllPanes` option in Workspace::open --- src/workspace.coffee | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index 8b8138b67..41bbc6b6d 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -77,16 +77,14 @@ class Workspace extends Model split = options.split uri = atom.project.relativize(uri) ? '' - pane = switch split + pane = @paneContainer.paneForUri(uri) if searchAllPanes + pane ?= switch split when 'left' @activePane.findLeftmostSibling() when 'right' @activePane.findOrCreateRightmostSibling() else - if searchAllPanes - @paneContainer.paneForUri(uri) ? @activePane - else - @activePane + @activePane @openUriInPane(uri, pane, options)