feat(api): make nvim_parse_cmd and nvim_cmd support :filter

Also fixes a memory leak in `parse_cmdline`.

Closes #18954.
This commit is contained in:
Famiu Haque
2022-06-28 16:22:29 +06:00
parent ee6b21e843
commit 606ec8b708
7 changed files with 157 additions and 16 deletions

View File

@@ -181,6 +181,7 @@ return {
cmd_mods = {
"silent";
"emsg_silent";
"filter";
"sandbox";
"noautocmd";
"browse";
@@ -197,6 +198,10 @@ return {
"vertical";
"split";
};
cmd_mods_filter = {
"pattern";
"force";
};
cmd_opts = {
"output";
};