diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index 03887abb5..ab7d58baa 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -715,8 +715,6 @@ export function Root(props: IProps): React.ReactElement { } editorRef.current.setModel(openScript.model); - editorRef.current.setPosition(openScript.lastPosition); - editorRef.current.revealLineInCenter(openScript.lastPosition.lineNumber); editorRef.current.setValue(openScript.code); updateRAM(openScript.code); editorRef.current.focus();