Give precedence to searchAllPanes option in Workspace::open

This commit is contained in:
probablycorey
2014-02-18 14:39:02 -08:00
committed by Corey Johnson & Nathan Sobo
parent 77453ff989
commit 63eb032472

View File

@@ -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)