@codemirror/view 6.28.3 → 6.28.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -7106,7 +7106,7 @@ class EditContextManager {
|
|
|
7106
7106
|
change.from = anchor;
|
|
7107
7107
|
else if (change.to == this.to && anchor > this.to)
|
|
7108
7108
|
change.to = anchor;
|
|
7109
|
-
// Edit
|
|
7109
|
+
// Edit contexts sometimes fire empty changes
|
|
7110
7110
|
if (change.from == change.to && !change.insert.length)
|
|
7111
7111
|
return;
|
|
7112
7112
|
this.pendingContextChange = change;
|
|
@@ -7165,6 +7165,7 @@ class EditContextManager {
|
|
|
7165
7165
|
if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert)) {
|
|
7166
7166
|
pending = this.pendingContextChange = null; // Match
|
|
7167
7167
|
off += dLen;
|
|
7168
|
+
this.to += dLen;
|
|
7168
7169
|
return;
|
|
7169
7170
|
}
|
|
7170
7171
|
else { // Mismatch, revert
|
package/dist/index.js
CHANGED
|
@@ -7101,7 +7101,7 @@ class EditContextManager {
|
|
|
7101
7101
|
change.from = anchor;
|
|
7102
7102
|
else if (change.to == this.to && anchor > this.to)
|
|
7103
7103
|
change.to = anchor;
|
|
7104
|
-
// Edit
|
|
7104
|
+
// Edit contexts sometimes fire empty changes
|
|
7105
7105
|
if (change.from == change.to && !change.insert.length)
|
|
7106
7106
|
return;
|
|
7107
7107
|
this.pendingContextChange = change;
|
|
@@ -7160,6 +7160,7 @@ class EditContextManager {
|
|
|
7160
7160
|
if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert)) {
|
|
7161
7161
|
pending = this.pendingContextChange = null; // Match
|
|
7162
7162
|
off += dLen;
|
|
7163
|
+
this.to += dLen;
|
|
7163
7164
|
return;
|
|
7164
7165
|
}
|
|
7165
7166
|
else { // Mismatch, revert
|