mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Clone serialized view state in editor before modifying it in place
This commit is contained in:
@@ -46,6 +46,7 @@ class Editor extends View
|
||||
editSessions: null
|
||||
|
||||
@deserialize: (viewState, rootView) ->
|
||||
viewState = _.clone(viewState)
|
||||
viewState.editSessions = viewState.editSessions.map (editSession) ->
|
||||
editSession = _.clone(editSession)
|
||||
editSession.buffer = Buffer.deserialize(editSession.buffer, rootView.project)
|
||||
|
||||
Reference in New Issue
Block a user