mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Don't use atom.clipboard global in Selection
This commit is contained in:
committed by
Nathan Sobo
parent
b2d178f641
commit
b5fc710f15
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user