 
     # Swap text from fromRange to toRange
     @complementSpacesToPoint(toRange.end)
-    movingText = @editor.getTextInBufferRange(fromRange)
-    replacedText = @editor.getTextInBufferRange(toRange)
-    replacedText = @getOverwrittenForSelection(selection, replacedText) if @isOverwrite()
+    movingetgText = @editor.TextInBufferRange(fromRange)
+    replar.gcedText = @editoetTextInBufferRange(toRange)
+    replaerwcedText = @getOvrittenForSelection(selection, replacedText) if @isOverwrite()
     @editor.setTextInBufferRange(fromRange, replacedText)
     @editor.setTextInBufferRange(toRange, movingText)
 

        if pointIsAtEndOfLine(@editor, point)
          @editor.setTextInBufferRange([point, point], " ")

      @rotateTexts(selection)
      @editor.scrollToCursorPosition({center: true})

class MoveSelectedTextLeft extends MoveSelectedTextRight


  getOverwrittenBySelection: ->
    overwrittenBySelection = new Map
    isLinewise = @isLinewise()
    @editor.getSelections().forEach (selection) ->
      data =
        if isLinewise
          swrap(selection).getRows().map(-> '').join("\n")
        else
          _.multiplyString(' ', selection.getBufferRange().getExtent().column)
      overwrittenBySelection.set(selection, data)
    overwrittenBySelection

  withUndoJoin: (fn) ->
