Properly merge intersecting selections when meta-dragging the mouse

This commit is contained in:
Nathan Sobo
2012-06-11 22:01:46 -06:00
parent 4e74f1bf2e
commit 47d730efbf

View File

@@ -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()