Merge pull request #19133 from famiu/feat/api/cmd_support_filter

feat(api): make `nvim_parse_cmd` and `nvim_cmd` support :filter
This commit is contained in:
bfredl
2022-06-29 09:12:01 +02:00
committed by GitHub
7 changed files with 157 additions and 16 deletions

View File

@@ -2404,7 +2404,7 @@ static bool cmdpreview_may_show(CommandLineState *s)
// Check if command is previewable, if not, don't attempt to show preview
if (!(ea.argt & EX_PREVIEW)) {
vim_regfree(cmdinfo.cmdmod.cmod_filter_regmatch.regprog);
undo_cmdmod(&cmdinfo.cmdmod);
goto end;
}