Don't use atom.clipboard global in Selection

This commit is contained in:
Antonio Scandurra
2015-10-06 19:57:13 +02:00
committed by Nathan Sobo
parent b2d178f641
commit b5fc710f15
2 changed files with 5 additions and 5 deletions

View File

@@ -2250,7 +2250,7 @@ class TextEditor extends Model
unless marker.getProperties().preserveFolds
@destroyFoldsContainingBufferRange(marker.getBufferRange())
cursor = @addCursor(marker)
selection = new Selection(_.extend({editor: this, marker, cursor}, options))
selection = new Selection(_.extend({editor: this, marker, cursor, @clipboard}, options))
@selections.push(selection)
selectionBufferRange = selection.getBufferRange()
@mergeIntersectingSelections(preserveFolds: marker.getProperties().preserveFolds)