mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
fix(api): use a conditional stack for nvim_cmd (#26341)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user