         scrollLeft: 0
 
       @displayBuffer = new DisplayBuffer(@buffer, { tabLength })
-      @subscribe @displayBuffer, 'marker-created', @handleMarkerCreation
+      @subscribe @displayBuffer, 'marker-created', @handleMarkerCreated
       @addCursorAtScreenPosition([0, 0])
 
     @languageMode = new LanguageMode(this, @buffer.getExtension())

      @buffer = project.bufferForId(@state.get('bufferId'))

      @displayBuffer = new DisplayBuffer(@buffer, { tabLength })
      @subscribe @displayBuffer, 'marker-created', @handleMarkerCreation

      for marker in @findMarkers(@getSelectionMarkerAttributes())
        @addSelection(marker)

    @unfoldAll()
    @trigger 'grammar-changed'

  handleMarkerCreated: (marker) =>
    if marker.matchesAttributes(@getSelectionMarkerAttributes())
      @addSelection(marker)

