@codemirror/rangeset
Advanced tools
Comparing version 0.19.8 to 0.19.9
@@ -0,1 +1,7 @@ | ||
## 0.19.9 (2022-03-09) | ||
### Bug fixes | ||
Fix an issue where points that are entirely covered by a point coming before them could be returend by a span iterator when it started directly at the point's position. | ||
## 0.19.8 (2022-02-19) | ||
@@ -2,0 +8,0 @@ |
@@ -582,3 +582,4 @@ import { MapMode } from '@codemirror/state'; | ||
compare(other) { | ||
return this.from - other.from || this.startSide - other.startSide || this.to - other.to || this.endSide - other.endSide; | ||
return this.from - other.from || this.startSide - other.startSide || this.rank - other.rank || | ||
this.to - other.to || this.endSide - other.endSide; | ||
} | ||
@@ -750,4 +751,3 @@ } | ||
this.cursor.next(); | ||
if (this.to > from) | ||
this.forward(this.to, this.endSide); | ||
this.forward(this.to, this.endSide); | ||
break; | ||
@@ -754,0 +754,0 @@ } |
{ | ||
"name": "@codemirror/rangeset", | ||
"version": "0.19.8", | ||
"version": "0.19.9", | ||
"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
76011