🏇 Use buffer ranges to see if selections intersect

This commit is contained in:
Nathan Sobo
2013-04-05 14:51:34 -06:00
parent 6042439598
commit 763729d08d

View File

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