diff --git a/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts b/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts index 1709fe53b0..80c5e71a06 100644 --- a/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts +++ b/services/web/frontend/js/features/source-editor/utils/tree-operations/commands.ts @@ -102,6 +102,10 @@ export const enterNode = ( return } + if (ctrlSeq.type.is('$CtrlSym')) { + return + } + const optionalArguments = commandNode.getChildren('OptionalArgument') const commandArguments = commandNode.getChildren('$Argument') const text = state.doc.sliceString(ctrlSeq.from, ctrlSeq.to)