@codemirror/rangeset
Advanced tools
Comparing version 0.18.1 to 0.18.2
@@ -0,1 +1,7 @@ | ||
## 0.18.2 (2021-05-27) | ||
### Bug fixes | ||
Adjust the logic for tracking open ranges to agree with the change in how precedence is handled in the view package. | ||
## 0.18.1 (2021-04-30) | ||
@@ -2,0 +8,0 @@ |
@@ -710,4 +710,4 @@ import { MapMode } from '@codemirror/state'; | ||
let active = []; | ||
for (let i = 0; i < this.active.length; i++) { | ||
if (this.activeRank[i] > this.pointRank) | ||
for (let i = this.active.length - 1; i >= 0; i--) { | ||
if (this.activeRank[i] < this.pointRank) | ||
break; | ||
@@ -717,7 +717,7 @@ if (this.activeTo[i] > to || this.activeTo[i] == to && this.active[i].endSide > this.point.endSide) | ||
} | ||
return active; | ||
return active.reverse(); | ||
} | ||
openEnd(to) { | ||
let open = 0; | ||
while (open < this.activeTo.length && this.activeTo[open] > to) | ||
for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > to; i--) | ||
open++; | ||
@@ -724,0 +724,0 @@ return open; |
{ | ||
"name": "@codemirror/rangeset", | ||
"version": "0.18.1", | ||
"version": "0.18.2", | ||
"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
68986