@lvce-editor/editor-worker 19.69.5 → 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/dist/settings.json +11 -1
- 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: [],
|
package/dist/settings.json
CHANGED
|
@@ -456,7 +456,17 @@
|
|
|
456
456
|
"description": "The modifier to be used to add multiple cursors with the mouse",
|
|
457
457
|
"heading": "Multi Cursor Modifier",
|
|
458
458
|
"id": "editor.multiCursorModifier",
|
|
459
|
-
"
|
|
459
|
+
"options": [
|
|
460
|
+
{
|
|
461
|
+
"id": "alt",
|
|
462
|
+
"label": "Alt"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"id": "ctrlCmd",
|
|
466
|
+
"label": "Ctrl/Cmd"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"type": "enum",
|
|
460
470
|
"value": "alt"
|
|
461
471
|
},
|
|
462
472
|
{
|