mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 09:01:57 +00:00
fix(api): use a conditional stack for nvim_cmd
(cherry picked from commit c0b9bdc4a3)
This commit is contained in:
committed by
github-actions[bot]
parent
7f74d9bd77
commit
2fed9d83bc
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user