From a5ad97f47d3a8af4f3c0132d8904a6ba01b700f2 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Thu, 20 Jan 2022 17:28:19 -0600 Subject: [PATCH] Remove unnecessary editor code --- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 2 -- 1 file changed, 2 deletions(-) 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();