mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Remove suppressBufferCreation from Editor initialize
This commit is contained in:
parent
4659fd7dc3
commit
aa10ae383b
@ -52,11 +52,11 @@ class Editor extends View
|
||||
@deserialize: (state, rootView) ->
|
||||
editSessions = state.editSessions.map (state) -> EditSession.deserialize(state, editor, rootView)
|
||||
|
||||
editor = new Editor(activeEditSessionIndex: state.activeEditSessionIndex, editSessions: editSessions, suppressBufferCreation: true, mini: state.mini)
|
||||
editor = new Editor(activeEditSessionIndex: state.activeEditSessionIndex, editSessions: editSessions, mini: state.mini)
|
||||
editor.isFocused = state.isFocused
|
||||
editor
|
||||
|
||||
initialize: ({activeEditSessionIndex, editSessions, suppressBufferCreation, @mini} = {}) ->
|
||||
initialize: ({activeEditSessionIndex, editSessions, @mini} = {}) ->
|
||||
requireStylesheet 'editor.css'
|
||||
requireStylesheet 'theme/twilight.css'
|
||||
|
||||
@ -72,7 +72,7 @@ class Editor extends View
|
||||
@setActiveEditSessionIndex(activeEditSessionIndex)
|
||||
else if @editSessions.length > 0
|
||||
@setActiveEditSessionIndex(0)
|
||||
else if !suppressBufferCreation
|
||||
else
|
||||
editSession = new EditSession
|
||||
softWrapColumn: @calcSoftWrapColumn()
|
||||
buffer: new Buffer()
|
||||
|
Loading…
Reference in New Issue
Block a user