         startRow += 1 if @isInner()
         return [startRow, endRow]
 
-  select: ->
-    @eachSelection (selection) =>
-      [startRow, endRow] = selection.getBufferRowRange()
-      row = if selection.isReversed() then startRow else endRow
-      if rowRange = @getFoldRowRangeForBufferRow(row)
-        swrap(selection).selectRowRange(rowRange)
+  selectTextObject: (selection) ->
+    [startRow, endRow] = selection.getBufferRowRange()
+    row = if selection.isReversed() then startRow else endRow
+    if rowRange = @getFoldRowRangeForBufferRow(row)
+      swrap(selection).selectRowRange(rowRange)
 
 class AFold extends Fold
   @extend()

# -------------------------
class CurrentLine extends TextObject
  @extend(false)
  select: ->
    @eachSelection (selection) =>
      {cursor} = selection
      cursor.moveToBeginningOfLine()
      cursor.moveToFirstCharacterOfLine() if @isInner()
      selection.selectToEndOfBufferLine()

class ACurrentLine extends CurrentLine
  @extend()

      pairInfo = @getPairInfo(from: pairInfo.aRange.end, @pair, enclosed)
    pairInfo?.targetRange

  selectTextObject: (selection) ->
    swrap(selection).setBufferRangeSafely @getRange(selection, {@enclosed})

# -------------------------
class AnyPair extends Pair
