Remove clipDirection parameter in a call to cursor.setBufferPosition

We aren’t clipping in that code path, so we might as well avoid to pass
the parameter.
This commit is contained in:
Antonio Scandurra
2016-04-06 14:38:53 +02:00
parent 00f03fd614
commit 3ec1027d5c

View File

@@ -392,7 +392,7 @@ class Selection extends Model
if options.select
@setBufferRange(newBufferRange, reversed: wasReversed)
else
@cursor.setBufferPosition(newBufferRange.end, clipDirection: 'forward') if wasReversed
@cursor.setBufferPosition(newBufferRange.end) if wasReversed
if autoIndentFirstLine
@editor.setIndentationForBufferRow(oldBufferRange.start.row, desiredIndentLevel)