         @editor.backspace()
 
   findMatchingEndPair: (startPairPosition, startPair, endPair) ->
-    scanRange = new Range(startPairPosition.translate([0, 1]), @editor.buffer.getEndPosition())
+    scanRange = new Range(startPairPosition.add([0, 1]), @editor.buffer.getEndPosition())
     endPairPosition = null
     unpairedCount = 0
     @editor.scanInBufferRange pairRegexes[startPair], scanRange, ({match, range, stop}) ->

          # if on the same line and the cursor is in front of an end pair
          # offset by one to make up for the missing character
          if position.row is matchPosition.row and endPairMatches.hasOwnProperty(currentPair)
            position = position.translate([0, -1])
          @editor.setCursorBufferPosition(position)
          @editor.delete()
        else


      if @tagHighlighted
        startPosition = startRange.end
        endPosition = endRange.start.add([0, -2]) # Don't select </
      else
        startPosition = startRange.start
        endPosition = endRange.start
