mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
refactor(api/nvim_cmd): use kvec_t
for constructing cmdline string
Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
This commit is contained in:
@@ -1290,9 +1290,7 @@ String nvim_cmd(uint64_t channel_id, Dict(cmd) *cmd, Dict(cmd_opts) *opts, Error
|
||||
|
||||
// Finally, build the command line string that will be stored inside ea.cmdlinep.
|
||||
// This also sets the values of ea.cmd, ea.arg, ea.args and ea.arglens.
|
||||
if (build_cmdline_str(&cmdline, &ea, &cmdinfo, args, argc) == FAIL) {
|
||||
goto end;
|
||||
}
|
||||
build_cmdline_str(&cmdline, &ea, &cmdinfo, args, argc);
|
||||
ea.cmdlinep = &cmdline;
|
||||
|
||||
garray_T capture_local;
|
||||
|
Reference in New Issue
Block a user