diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2022-06-28 16:22:29 +0600 |
---|---|---|
committer | Famiu Haque <famiuhaque@protonmail.com> | 2022-06-28 17:31:04 +0600 |
commit | 606ec8b70874095a62289f1df3934eca78625742 (patch) | |
tree | d5501227f7b270fec8d01ee5915da4175c6e7d22 /src/nvim/ex_getln.c | |
parent | ee6b21e8430ea810ba2e3e9163b941386a2e1d65 (diff) | |
download | rneovim-606ec8b70874095a62289f1df3934eca78625742.tar.gz rneovim-606ec8b70874095a62289f1df3934eca78625742.tar.bz2 rneovim-606ec8b70874095a62289f1df3934eca78625742.zip |
feat(api): make `nvim_parse_cmd` and `nvim_cmd` support :filter
Also fixes a memory leak in `parse_cmdline`.
Closes #18954.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 93758b9ec9..f7c650cf3e 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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; } |