mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
🏇 Use buffer ranges to see if selections intersect
This commit is contained in:
@@ -407,7 +407,7 @@ class Selection
|
||||
@getBufferRange().intersectsWith(bufferRange)
|
||||
|
||||
intersectsWith: (otherSelection) ->
|
||||
@getScreenRange().intersectsWith(otherSelection.getScreenRange())
|
||||
@getBufferRange().intersectsWith(otherSelection.getBufferRange())
|
||||
|
||||
merge: (otherSelection, options) ->
|
||||
@setBufferRange(@getBufferRange().union(otherSelection.getBufferRange()), options)
|
||||
|
||||
Reference in New Issue
Block a user