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

@@ -268,6 +268,7 @@ typedef struct {
int cmod_split; ///< flags for win_split()
int cmod_tab; ///< > 0 when ":tab" was used
char *cmod_filter_pat;
regmatch_T cmod_filter_regmatch; ///< set by :filter /pat/
bool cmod_filter_force; ///< set for :filter!