mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Properly merge intersecting selections when meta-dragging the mouse
This commit is contained in:
@@ -320,7 +320,9 @@ class EditSession
|
||||
@mergeCursors()
|
||||
|
||||
selectToScreenPosition: (position) ->
|
||||
@getLastSelection().selectToScreenPosition(position)
|
||||
lastSelection = @getLastSelection()
|
||||
lastSelection.selectToScreenPosition(position)
|
||||
@mergeIntersectingSelections(reverse: lastSelection.isReversed())
|
||||
|
||||
selectRight: ->
|
||||
@expandSelectionsForward (selection) => selection.selectRight()
|
||||
|
||||
Reference in New Issue
Block a user