mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Enforce stricter requirements for Editor.getPane()
Previously it would return the closest '.pane' element which would cause an editor inside of another editor to report having a pane such as in the autocomplete view.
This commit is contained in:
@@ -639,19 +639,19 @@ class Editor extends View
|
||||
@requestDisplayUpdate()
|
||||
|
||||
splitLeft: (items...) ->
|
||||
@pane()?.splitLeft(items...).activeView
|
||||
@getPane()?.splitLeft(items...).activeView
|
||||
|
||||
splitRight: (items...) ->
|
||||
@pane()?.splitRight(items...).activeView
|
||||
@getPane()?.splitRight(items...).activeView
|
||||
|
||||
splitUp: (items...) ->
|
||||
@pane()?.splitUp(items...).activeView
|
||||
@getPane()?.splitUp(items...).activeView
|
||||
|
||||
splitDown: (items...) ->
|
||||
@pane()?.splitDown(items...).activeView
|
||||
@getPane()?.splitDown(items...).activeView
|
||||
|
||||
pane: ->
|
||||
@closest('.pane').view()
|
||||
getPane: ->
|
||||
@parent('.item-views').parent('.pane').view()
|
||||
|
||||
remove: (selector, keepData) ->
|
||||
return super if keepData or @removed
|
||||
|
||||
Reference in New Issue
Block a user