fix(api): use a conditional stack for nvim_cmd

(cherry picked from commit c0b9bdc4a3)
This commit is contained in:
zeertzjq
2023-12-01 12:57:38 +08:00
committed by github-actions[bot]
parent 7f74d9bd77
commit 2fed9d83bc
2 changed files with 22 additions and 0 deletions

View File

@@ -1694,6 +1694,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);