   getRanges: (selection) ->
     (range for klass in @member when (range = @getRangeBy(klass, selection)))
 
-  getNearestRange: (selection) ->
+  getRange: (selection) ->
     ranges = @getRanges(selection)
     _.last(sortRanges(ranges)) if ranges.length
-
-  selectTextObject: (selection) ->
-    swrap(selection).setBufferRangeSafely @getNearestRange(selection)
 
 class AAnyPair extends AnyPair
   @extend()

      @vimState.submode is 'linewise'

  select: ->
    @countTimes =>
      for selection in @editor.getSelections()
        @selectTextObject(selection)
    @updateSelectionProperties() if @isMode('visual')

# -------------------------
class Word extends TextObject

  @extend(false)
  getRange: ->
    @vimState.mark.getRange('[', ']')

class ALatestChange extends LatestChange
  @extend()
