mirror of
https://github.com/atom/atom.git
synced 2026-02-17 18:11:29 -05:00
Give precedence to searchAllPanes option in Workspace::open
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
77453ff989
commit
63eb032472
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user