       @emit 'moved', movedEvent
       @editor.emit 'cursor-moved', movedEvent
     @marker.on 'destroyed', =>
-      console.log 'destroyed'
       @destroyed = true
       @editor.removeCursor(this)
       @emit 'destroyed'

      {oldHeadBufferPosition, newHeadBufferPosition} = e
      {textChanged} = e

      unless @editor.mini
        console.log 'marker changed', @editor.getCursorBufferPosition(), @marker.id

      return if oldHeadScreenPosition.isEqual(newHeadScreenPosition)

      @needsAutoscroll ?= @isLastCursor() and !textChanged


  # Instantiated by an {Editor}
  constructor: ({@editor, @marker}) ->
    @updateVisibility()
    @marker.on 'changed', (e) =>
      @updateVisibility()
