Merge branch 'master' into as-file-recovery-service

This commit is contained in:
Antonio Scandurra
2016-05-24 10:07:30 +02:00
19 changed files with 90 additions and 66 deletions

View File

@@ -2596,7 +2596,7 @@ class TextEditor extends Model
# Returns the new {Selection}.
addSelection: (marker, options={}) ->
cursor = @addCursor(marker)
selection = new Selection(_.extend({editor: this, marker, cursor, @clipboard}, options))
selection = new Selection(Object.assign({editor: this, marker, cursor, @clipboard}, options))
@selections.push(selection)
selectionBufferRange = selection.getBufferRange()
@mergeIntersectingSelections(preserveFolds: options.preserveFolds)