@lvce-editor/editor-worker 19.30.9 → 19.30.10
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 +2 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -5443,7 +5443,7 @@ const isUntitledFile = uri => {
|
|
|
5443
5443
|
};
|
|
5444
5444
|
|
|
5445
5445
|
const saveNormalFile = async (uri, content) => {
|
|
5446
|
-
await invoke$a('FileSystem.writeFile', uri, content);
|
|
5446
|
+
await invoke$a('FileSystem.writeFile', uri, content, 'utf8', false);
|
|
5447
5447
|
};
|
|
5448
5448
|
|
|
5449
5449
|
const showFilePicker = async platform => {
|
|
@@ -10905,7 +10905,7 @@ const undo = state => {
|
|
|
10905
10905
|
return state;
|
|
10906
10906
|
}
|
|
10907
10907
|
const last = undoStack.at(-1);
|
|
10908
|
-
const inverseChanges = last.map(inverseChange);
|
|
10908
|
+
const inverseChanges = last.toReversed().map(inverseChange);
|
|
10909
10909
|
const newState = {
|
|
10910
10910
|
...state,
|
|
10911
10911
|
redoStack: [...(state.redoStack || []), last],
|