mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user