fix(api): use a conditional stack for nvim_cmd (#26341)

This commit is contained in:
zeertzjq
2023-12-01 13:56:04 +08:00
committed by GitHub
parent 0bbe8e7fc2
commit 130cb4815a
2 changed files with 22 additions and 0 deletions

View File

@@ -1711,6 +1711,9 @@ int execute_cmd(exarg_T *eap, CmdParseInfo *cmdinfo, bool preview)
goto end;
}
cstack_T cstack = { .cs_idx = -1 };
eap->cstack = &cstack;
// Execute the command
execute_cmd0(&retv, eap, &errormsg, preview);