mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Return the new pane's currentView when splitting the editor
This commit is contained in:
committed by
probablycorey
parent
106c6c3958
commit
062adae714
@@ -786,16 +786,16 @@ class Editor extends View
|
||||
@requestDisplayUpdate()
|
||||
|
||||
splitLeft: (editSession) ->
|
||||
@pane()?.splitLeft()
|
||||
@pane()?.splitLeft().currentView
|
||||
|
||||
splitRight: (editSession) ->
|
||||
@pane()?.splitRight()
|
||||
@pane()?.splitRight().currentView
|
||||
|
||||
splitUp: (editSession) ->
|
||||
@pane()?.splitUp()
|
||||
@pane()?.splitUp().currentView
|
||||
|
||||
splitDown: (editSession) ->
|
||||
@pane()?.splitDown()
|
||||
@pane()?.splitDown().currentView
|
||||
|
||||
pane: ->
|
||||
@closest('.pane').view()
|
||||
|
||||
Reference in New Issue
Block a user