 settings = require './settings'
 swrap = require './selection-wrapper'
 isSpecMode = atom.inSpecMode()
-
 lineHeight = null
 
 getCursorNode = (editorElement, cursor) ->

    # But corresponding cursorsComponent(HTML element) is added in sync.
    # So to modify style of cursorsComponent, we have to make sure corresponding cursorsComponent
    # is available by component in sync to model.
    if submode is 'blockwise'
      @editorElement.component.updateSync()

    cursorsToShow.map (cursor) =>
      cursorNode = getCursorNode(@editorElement, cursor)
      setStyle(cursorNode.style, getOffset(submode, cursor))

module.exports = CursorStyleManager


    cursors = cursorsToShow = @editor.getCursors()
    if submode is 'blockwise'
      cursorsToShow = @vimState.getBlockwiseSelections().map (bs) -> bs.getHead().cursor

    # update visibility
    for cursor in cursors
      if cursor in cursorsToShow
        cursor.setVisible(true) unless cursor.isVisible()
