@codemirror/view 6.39.0-beta.3 → 6.39.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1598,6 +1598,8 @@ class ChangedRange {
1598
1598
  let end = ranges[rI + 1];
1599
1599
  rI += 2;
1600
1600
  toB = Math.max(toB, end);
1601
+ for (let i = dI; i < diff.length && diff[i].fromB <= toB; i++)
1602
+ off = diff[i].toA - diff[i].toB;
1601
1603
  toA = Math.max(toA, end + off);
1602
1604
  }
1603
1605
  else if (dI < diff.length && diff[dI].fromB <= toB) {
package/dist/index.js CHANGED
@@ -1594,6 +1594,8 @@ class ChangedRange {
1594
1594
  let end = ranges[rI + 1];
1595
1595
  rI += 2;
1596
1596
  toB = Math.max(toB, end);
1597
+ for (let i = dI; i < diff.length && diff[i].fromB <= toB; i++)
1598
+ off = diff[i].toA - diff[i].toB;
1597
1599
  toA = Math.max(toA, end + off);
1598
1600
  }
1599
1601
  else if (dI < diff.length && diff[dI].fromB <= toB) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/view",
3
- "version": "6.39.0-beta.3",
3
+ "version": "6.39.0-beta.4",
4
4
  "description": "DOM view component for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",