@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.
@@ -3336,9 +3336,9 @@ const getVisible$1 = async (editor, syncIncremental) => {
3336
3336
  lines,
3337
3337
  width
3338
3338
  } = editor;
3339
- const visibleLineIndices = editor.visibleLineIndices || Array.from({
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: [],
@@ -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
- "type": "string",
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.69.5",
3
+ "version": "19.69.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"