diff --git a/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx b/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx index 4fef0d0aa4..efb4787121 100644 --- a/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx +++ b/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx @@ -392,7 +392,9 @@ export const EditorManagerProvider: FC = ({ children }) => { new CustomEvent('doc:after-opened', { detail: isNewDoc }) ) if (hasGotoLine(options)) { - // In CM6, jump to the line again after a stored scroll position has been restored + window.setTimeout(() => jumpToLine(options)) + + // Jump to the line again after a stored scroll position has been restored if (isNewDoc) { window.addEventListener( 'editor:scroll-position-restored',