+'use strict'
+last = (array) -> array[array.length - 1]
+
 class BlockCursor
   cursorStyle = null
   primarySelector = 'atom-text-editor::shadow .cursors .cursor'

    @secondaryColorObserveSubscription.dispose()
    @pulseDurationObserveSubscription.dispose()

  applyCursorType: (@cursorType) ->
    workspaceView = atom.views.getView atom.workspace
    workspaceView.className = workspaceView.className.replace /block-cursor-(block|bordered-box|i-beam|underline)/, ''
    workspaceView.classList.add "block-cursor-#{cursorType}"

  config:
    cursorType:
      type: 'string'
      default: '\u25AE - block'
      enum: [
        '\u25AE - block'
        '\u25AF - bordered-box'
        '| - i-beam'
        '_ - underline'
      ]
    primaryColor:
      description: 'Primary color of the cursor'
