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

    startRow is endRow

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

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

          reversed: @selection.isReversed()

  setReversedState: (reversed) ->
    @setBufferRange @getBufferRange(), {autoscroll: true, reversed}

  getRows: ->
    [startRow, endRow] = @selection.getBufferRowRange()
