mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
When splitting an editor only the active edit session is copied to the new editor.
This commit is contained in:
@@ -519,17 +519,21 @@ class Editor extends View
|
||||
@updateCursorViews()
|
||||
@updateRenderedLines()
|
||||
|
||||
newSplitEditor: ->
|
||||
editSession = EditSession.deserialize(@activeEditSession.serialize(), this, @rootView())
|
||||
new Editor { editSession }
|
||||
|
||||
splitLeft: ->
|
||||
@pane()?.splitLeft(@copy()).wrappedView
|
||||
@pane()?.splitLeft(@newSplitEditor()).wrappedView
|
||||
|
||||
splitRight: ->
|
||||
@pane()?.splitRight(@copy()).wrappedView
|
||||
@pane()?.splitRight(@newSplitEditor()).wrappedView
|
||||
|
||||
splitUp: ->
|
||||
@pane()?.splitUp(@copy()).wrappedView
|
||||
@pane()?.splitUp(@newSplitEditor()).wrappedView
|
||||
|
||||
splitDown: ->
|
||||
@pane()?.splitDown(@copy()).wrappedView
|
||||
@pane()?.splitDown(@newSplitEditor()).wrappedView
|
||||
|
||||
pane: ->
|
||||
@parent('.pane').view()
|
||||
|
||||
Reference in New Issue
Block a user