1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Keep the correct ranges.

This commit is contained in:
Rob Rix 2015-10-23 11:04:03 -04:00
parent f598a15864
commit 8d344381e7

View File

@ -226,7 +226,7 @@
function Diff(json, a, b) {
if (json.pure != null) { this.pure = patch(json.pure, a, b); }
if (json.roll != null) {
this.ranges = json.extract;
this.ranges = json.roll.extract;
this.sources = [ a, b ];
this.roll = syntax(json.roll.unwrap, function(x) { return new Diff(x, a, b); });
}