Exclude CtrlSym commands from completion (#12905)

GitOrigin-RevId: f6d1813eba6c17444d2371b024f538137c244963
This commit is contained in:
Alf Eaton 2023-05-03 09:27:54 +01:00 committed by Copybot
parent b010d6a5d3
commit 2093d85a5f

View file

@ -102,6 +102,10 @@ export const enterNode = (
return return
} }
if (ctrlSeq.type.is('$CtrlSym')) {
return
}
const optionalArguments = commandNode.getChildren('OptionalArgument') const optionalArguments = commandNode.getChildren('OptionalArgument')
const commandArguments = commandNode.getChildren('$Argument') const commandArguments = commandNode.getChildren('$Argument')
const text = state.doc.sliceString(ctrlSeq.from, ctrlSeq.to) const text = state.doc.sliceString(ctrlSeq.from, ctrlSeq.to)