@lvce-editor/editor-worker 19.69.6 → 19.69.7
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 +3 -3
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -3336,9 +3336,9 @@ const getVisible$1 = async (editor, syncIncremental) => {
|
|
|
3336
3336
|
lines,
|
|
3337
3337
|
width
|
|
3338
3338
|
} = editor;
|
|
3339
|
-
const visibleLineIndices = editor.visibleLineIndices
|
|
3340
|
-
length: Math.min(editor.maxLineY ?? editor.minLineY + editor.numberOfVisibleLines, lines.length) - editor.minLineY
|
|
3341
|
-
}, (_, index) => editor.minLineY + index);
|
|
3339
|
+
const visibleLineIndices = (editor.visibleLineIndices ?? Array.from({
|
|
3340
|
+
length: Math.max(0, Math.min(editor.maxLineY ?? editor.minLineY + editor.numberOfVisibleLines, lines.length) - editor.minLineY)
|
|
3341
|
+
}, (_, index) => editor.minLineY + index)).filter(rowIndex => rowIndex >= 0 && rowIndex < lines.length);
|
|
3342
3342
|
if (visibleLineIndices.length === 0) {
|
|
3343
3343
|
return {
|
|
3344
3344
|
differences: [],
|