@codemirror/rangeset
Advanced tools
Comparing version 0.19.2 to 0.19.3
@@ -0,1 +1,7 @@ | ||
## 0.19.3 (2021-12-14) | ||
### Bug fixes | ||
Fix an issue in `RangeSet.compare` where the interaction between spans and points sometimes caused points that had their wrapping spans changed to not be reported. | ||
## 0.19.2 (2021-11-12) | ||
@@ -2,0 +8,0 @@ |
@@ -290,4 +290,4 @@ import { MapMode } from '@codemirror/state'; | ||
minPointSize = -1) { | ||
let a = oldSets.filter(set => set.maxPoint >= 500 /* BigPointSize */ || !set.isEmpty && set.maxPoint >= minPointSize); | ||
let b = newSets.filter(set => set.maxPoint >= 500 /* BigPointSize */ || !set.isEmpty && set.maxPoint >= minPointSize); | ||
let a = oldSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize); | ||
let b = newSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize); | ||
let sharedChunks = findSharedChunks(a, b, textDiff); | ||
@@ -492,3 +492,3 @@ let sideA = new SpanCursor(a, sharedChunks, minPointSize); | ||
for (let i = 0; i < set.chunk.length; i++) | ||
if (set.chunk[i].maxPoint < 500 /* BigPointSize */) | ||
if (set.chunk[i].maxPoint <= 0) | ||
inA.set(set.chunk[i], set.chunkPos[i]); | ||
@@ -727,3 +727,4 @@ let shared = new Set(); | ||
} | ||
else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to && nextVal.endSide == this.endSide) { | ||
else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to && | ||
nextVal.endSide == this.endSide) { | ||
// Ignore any non-empty points that end precisely at the end of the prev point | ||
@@ -730,0 +731,0 @@ this.cursor.next(); |
{ | ||
"name": "@codemirror/rangeset", | ||
"version": "0.19.2", | ||
"version": "0.19.3", | ||
"description": "Range set data structure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73533
1917