@lvce-editor/editor-worker 19.67.0 → 19.67.1
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 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -7665,7 +7665,7 @@ const getCopyLineOperations = selections => {
|
|
|
7665
7665
|
}
|
|
7666
7666
|
return mergedOperations;
|
|
7667
7667
|
};
|
|
7668
|
-
const copyLineDown = editor => {
|
|
7668
|
+
const copyLineDown = async editor => {
|
|
7669
7669
|
const {
|
|
7670
7670
|
selections
|
|
7671
7671
|
} = editor;
|
|
@@ -7704,7 +7704,8 @@ const copyLineDown = editor => {
|
|
|
7704
7704
|
selectionChanges[i + 2] = selections[i + 2] + getRowOffset(selections[i + 2]);
|
|
7705
7705
|
selectionChanges[i + 3] = selections[i + 3];
|
|
7706
7706
|
}
|
|
7707
|
-
|
|
7707
|
+
const newEditor = await scheduleDocumentAndCursorsSelections(editor, changes, selectionChanges);
|
|
7708
|
+
return typeof newEditor.finalDeltaY === 'number' ? scheduleSelections(newEditor, selectionChanges) : newEditor;
|
|
7708
7709
|
};
|
|
7709
7710
|
|
|
7710
7711
|
const copyLineUp = editor => {
|