mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
🎨 Rename to TextEditor#mergeSelectionsOnSameRows
* 🔥 Delete `Selection#intersectsByRowWith`
This commit is contained in:
@@ -1026,7 +1026,7 @@ class TextEditor extends Model
|
||||
|
||||
# Extended: Delete all lines intersecting selections.
|
||||
deleteLine: ->
|
||||
@mergeIntersectingSelectionsByRow()
|
||||
@mergeSelectionsOnSameRows()
|
||||
@mutateSelectedText (selection) -> selection.deleteLine()
|
||||
|
||||
###
|
||||
@@ -2054,9 +2054,9 @@ class TextEditor extends Model
|
||||
|
||||
previousSelection.intersectsWith(currentSelection, exclusive)
|
||||
|
||||
mergeIntersectingSelectionsByRow: (args...) ->
|
||||
mergeSelectionsOnSameRows: (args...) ->
|
||||
@mergeSelections args..., (previousSelection, currentSelection) ->
|
||||
previousSelection.intersectsByRowWith(currentSelection)
|
||||
previousSelection.intersectsScreenRowRange(currentSelection.getBufferRowRange()...)
|
||||
|
||||
mergeSelections: (args...) ->
|
||||
mergePredicate = args.pop()
|
||||
|
||||
Reference in New Issue
Block a user