       /[\t ]*/
     else
       @wordRegExp ? getWordRegExpForPointWithCursor(selection.cursor, point)
-
-  selectTextObject: (selection) ->
-    swrap(selection).setBufferRangeSafely(@getRange(selection))
 
   getRange: (selection) ->
     pattern = @getPattern(selection)

        unionRange = range
    unionRange

  selectTextObject: (selection) ->
    range = @getUnionRange(selection)
    swrap(selection).setBufferRangeSafely(range)

class AFunctionOrInnerParagraph extends UnionTextObject
  @extend()
  member: ['AFunction', 'InnerParagraph']

# -------------------------
class CurrentLine extends TextObject
  @extend(false)
  getRange: (selection) ->
    {cursor} = selection
    if @isA()
      cursor.getCurrentLineBufferRange()
    else
      scanRange = cursor.getCurrentLineBufferRange()
      pattern = /\S/
      [start, end] = []
      @editor.backwardsScanInBufferRange pattern, scanRange, ({range, stop}) ->
        end = range.end
        stop()

      @editor.scanInBufferRange pattern, scanRange, ({range, stop}) ->
        start = range.start
        stop()

      if start and end
        new Range(start, end)

class ACurrentLine extends CurrentLine
  @extend()
