 
   @deserialize: (state, atomEnvironment) ->
     state.tokenizedBuffer = TokenizedBuffer.deserialize(state.tokenizedBuffer, atomEnvironment)
+    state.displayLayer = state.tokenizedBuffer.buffer.getDisplayLayer(state.displayLayerId)
     state.config = atomEnvironment.config
     state.assert = atomEnvironment.assert
     state.grammarRegistry = atomEnvironment.grammars


    {
      tabLength, @editorWidthInChars, @tokenizedBuffer, buffer, @ignoreInvisibles,
      @largeFileMode, @config, @assert, @grammarRegistry, @packageManager
    } = params

    @emitter = new Emitter

    editorWidthInChars: @editorWidthInChars
    tokenizedBuffer: @tokenizedBuffer.serialize()
    largeFileMode: @largeFileMode
    displayLayerId: @displayLayer.id

  copy: ->
    new DisplayBuffer({
      @buffer, tabLength: @getTabLength(), @largeFileMode, @config, @assert,
      @grammarRegistry, @packageManager, displayLayer: @buffer.copyDisplayLayer(@displayLayer.id)
    })

  resetDisplayLayer: ->
