diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 02d6fae35..3ca335188 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -824,7 +824,7 @@ class TextEditor extends Model newSelectionBufferRanges = [] selections = @getSelectedBufferRanges() selections.sort (a, b) -> - return a.compare(b) + a.compare(b) for selection in selections return if selection.start.row is 0 lastRow = @buffer.getLastRow()