       cursor.setVisible(true) unless cursor.isVisible()
       @updateClassCond cursor.selection.isReversed(), 'reversed'
 
-  addClass:    (klass) ->
-    @editorElement.classList.add(klass)
-
-  removeClass: (klass) ->
-    @editorElement.classListr.remove(klass)
+  addClass: (klass...) ->
+    @editorElement.classList.add(klass...)
+
+  removeClass: (klass...) ->
+    @editorElement.classList.remove(klass...)
 
   updateClassCond: (condition, klass) ->
     action = (if condition then 'add' else 'remove')

    @hover.reset()
    @operationStack.clear()


  # Miscellaneous commands
  # -------------------------
  undo: ->

    if @editor.isAlive()
      @activate('normal') # reset to base mdoe.
      @editorElement.component?.setInputEnabled(true)
      @removeClass 'vim-mode', 'normal-mode'
    # @editorElement.removeEventListener 'mouseup', @checkSelections
    @editor = null
    @editorElement = null
