       charLower
 
   getNewText: (text) ->
-    (@toggleCase(char) for char in text.split('')).join('')
+    text.split('').map(@toggleCase).join('')
 
   execute: ->
     if _.any @target.select()


class Indent extends Operator
  @extend()
  lineWiseAlias: true
  execute: ->
    @target.select()
    startRow = @editor.getSelectedBufferRange().start.row

    if text
      @vimState.register.set({text})

class Select extends Operator
  @extend()
  execute: ->
