     @pulseDurationObserveSubscription.dispose()
 
   applyCursorType: (cursorType) ->
-    @cursorType = cursorType = last cursorType.split ' '
+    @cursorType = cursorType = cursorTypeMap[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}"

'use strict'
last = (array) -> array[array.length - 1]

class BlockCursor
  cursorStyle = null

  config:
    cursorType:
      type: 'string'
      default: '\u25AE - Block'
      enum: (key for own key of cursorTypeMap)
    primaryColor:
      description: 'Primary color of the cursor'
      type: 'color'
