 
   updateCursorStyle: ->
     selections = @editor.getSelections()
-    cursorElements = @editorElement.shadowRoot.querySelectorAll('.cursor')
-
+    cursorElements = @editorElement.shadowRoot.querySelectorAll('div.cursor')
     # [FIXME] Just for spec pass without error. In specmode
     # Its not proper way of avoiding spec error. but need time.
     return unless ((cursorElements.length is selections.length) and cursorElements.length)

      @editorElement.removeEventListener 'mousedown', handleMouseDown
      @editorElement.removeEventListener 'mouseup', handleMouseUp

    @subscriptions.add @editor.onDidChangeSelectionRange =>
      return if @operationStack.isProcessing()
      debouncedHandleSelectionChange()

  onDidFailToSetTarget: (fn) ->
    @emitter.on('did-fail-to-set-target', fn)

      switch
        when @isMode('visual') and (not someSelection) then @activate('normal')
        when @isMode('normal') and someSelection then @activate('visual', 'characterwise')

    selectionWatcher = null
    handleMouseDown = =>
      selectionWatcher?.dispose()
      point = @editor.getLastCursor().getBufferPosition()
      tailRange = Range.fromPointWithDelta(point, 0, +1)
      selectionWatcher = @editor.onDidChangeSelectionRange ({selection}) =>
        handleSelectionChange()
        selection.setBufferRange(selection.getBufferRange().union(tailRange))
        @showCursors()

    handleMouseUp = ->
      selectionWatcher?.dispose()
      selectionWatcher = null

    @editorElement.addEventListener 'mousedown', handleMouseDown
    @editorElement.addEventListener 'mouseup', handleMouseUp
