     if range
       @setBufferRange(range, {autoscroll: true})
 
+  getBufferRange: ->
+    @selection.getBufferRange()
+
   reverse: ->
     @setReversedState(not @selection.isReversed())
 

    startRow is endRow

  isLinewise: ->
    isLinewiseRange(@selection.getBufferRange())

swrap = (selection) ->
  new SelectionWrapper(selection)

      @selection.editor.bufferRangeForBufferRow(row, includeNewline: true)
    else
      tail = @selection.getTailBufferPosition()
      tokenizedLine = @selection.editor.tokenizedLineForScreenRow(tail.row)
      if @selection.isReversed()
        column = tail.column - 1
        clip = 'backward'
