Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Oct 20, 2016
1 parent e89d847 commit fe0208b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motion/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Range {
}

public overlaps(other: Range): boolean {
return this.start <= other.stop && other.start <= this.stop;
return this.start.isBeforeOrEqual(other.stop) && other.start.isBeforeOrEqual(this.stop);
}

public add(diff: PositionDiff): Range {
Expand Down

0 comments on commit fe0208b

Please sign in to comment.