 # -------------------------
 class CurrentLine extends TextObject
   @extend(false)
-  select: ->
-    @eachSelection (selection) =>
-      {cursor} = selection
-      cursor.moveToBeginningOfLine()
-      cursor.moveToFirstCharacterOfLine() if @isInner()
-      selection.selectToEndOfBufferLine()
+  selectTextObject: (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

  select: ->
    @eachSelection (s) =>
      swrap(s).setBufferRangeSafely @getRange(s, {@enclosed})

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

    ranges = @getRanges(selection)
    _.last(sortRanges(ranges)) if ranges.length

  selectTextObject: (selection) ->
    swrap(selection).setBufferRangeSafely @getNearestRange(selection)

class AAnyPair extends AnyPair
  @extend()
