From 763729d08d35bc68b84c1f96eaa7b753b1aecd0a Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 5 Apr 2013 14:51:34 -0600 Subject: [PATCH] :horse_racing: Use buffer ranges to see if selections intersect --- src/app/selection.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/selection.coffee b/src/app/selection.coffee index 2bde79cfd..03bf8aca4 100644 --- a/src/app/selection.coffee +++ b/src/app/selection.coffee @@ -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)