@codemirror/text
Advanced tools
Comparing version 0.19.2 to 0.19.3
@@ -0,1 +1,7 @@ | ||
## 0.19.3 (2021-09-04) | ||
### Bug fixes | ||
Fix an issue where a partial text cursor would sometimes not appropriately report it was done. | ||
## 0.19.2 (2021-08-25) | ||
@@ -2,0 +8,0 @@ |
@@ -100,3 +100,3 @@ /** | ||
/** | ||
Retrive a part of the document as a string | ||
Retrieve a part of the document as a string | ||
*/ | ||
@@ -138,2 +138,3 @@ abstract sliceString(from: number, to?: number, lineSep?: string): string; | ||
abstract readonly children: readonly Text[] | null; | ||
[Symbol.iterator]: () => Iterator<string>; | ||
/** | ||
@@ -140,0 +141,0 @@ Create a `Text` instance for the given array of lines. |
@@ -577,3 +577,2 @@ // Compressed representation of the Grapheme_Cluster_Break=Extend | ||
} | ||
this.done = false; | ||
skip += Math.max(0, dir < 0 ? this.pos - this.to : this.from - this.pos); | ||
@@ -587,2 +586,3 @@ let limit = dir < 0 ? this.pos - this.from : this.to - this.pos; | ||
this.value = value.length <= limit ? value : dir < 0 ? value.slice(value.length - limit) : value.slice(0, limit); | ||
this.done = !this.value; | ||
return this; | ||
@@ -589,0 +589,0 @@ } |
{ | ||
"name": "@codemirror/text", | ||
"version": "0.19.2", | ||
"version": "0.19.3", | ||
"description": "Document 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
60001
1519