@lvce-editor/editor-worker 19.73.1 → 19.73.2
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/editorWorkerMain.js +4 -0
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -3779,6 +3779,10 @@ const getIncrementalEdits = async (oldState, newState) => {
|
|
|
3779
3779
|
lines
|
|
3780
3780
|
} = newState;
|
|
3781
3781
|
const oldLine = oldState.lines[rowIndex];
|
|
3782
|
+
// Empty lines have no nonempty token to update; render the new token normally.
|
|
3783
|
+
if (oldLine.length === 0) {
|
|
3784
|
+
return emptyIncrementalEdits;
|
|
3785
|
+
}
|
|
3782
3786
|
const newLine = lines[rowIndex];
|
|
3783
3787
|
// Renderer edit offsets address full lines, so clipped rows need a fresh visible window.
|
|
3784
3788
|
const threshold = newState.horizontalVirtualizationThreshold ?? 500;
|