diff --git a/src/completion/completer/macro.ts b/src/completion/completer/macro.ts index b802214d4..6a7fb266b 100644 --- a/src/completion/completer/macro.ts +++ b/src/completion/completer/macro.ts @@ -260,8 +260,7 @@ function parseAst(node: Ast.Node, filePath: string, defined?: Set): CmdE if (entry.type === 'string') { if (entry.content === 'm') { args += '{}' - } - if (entry.content === 'o' || entry.content === 'O') { + } else if (entry.content === 'o' || entry.content === 'O') { args += '[]' } }