diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 04cbeede4..3361ae77d 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -1890,7 +1890,7 @@ describe "TextEditor", -> expect(editor.getSelectedBufferRanges()).toEqual [[[0, 0], [0, 3]]] describe ".consolidateSelections()", -> - it "destroys all selections until the first, original, selections returning true if any selections were destroyed", -> + it "destroys all selections but the least recent, returning true if any selections were destroyed", -> editor.setSelectedBufferRange([[3, 16], [3, 21]]) selection1 = editor.getLastSelection() selection2 = editor.addSelectionForBufferRange([[3, 25], [3, 34]]) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index ef3b18a92..df38d0bcd 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -2264,7 +2264,7 @@ class TextEditor extends Model @consolidateSelections() @getLastSelection().clear(options) - # Reduce multiple selections to the first, original selection. + # Reduce multiple selections to the least recently added selection. consolidateSelections: -> selections = @getSelections() if selections.length > 1