   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()

class Comment extends TextObject
  @extend(false)

  selectTextObject: (selection) ->
    row = selection.getBufferRange().start.row
    if rowRange = @getRowRangeForCommentAtBufferRow(row)
      swrap(selection).selectRowRange(rowRange)

  getRowRangeForCommentAtBufferRow: (row) ->
    switch

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

class ALatestChange extends LatestChange
  @extend()
