mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
fix(inccommand): parse the command to check if it is previewable
Free regprog if command isn't previewable Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "nvim/ex_docmd.h"
|
||||
#include "nvim/lua/executor.h"
|
||||
#include "nvim/ops.h"
|
||||
#include "nvim/regexp.h"
|
||||
#include "nvim/window.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
@@ -94,6 +95,7 @@ Dictionary nvim_parse_cmd(String str, Dictionary opts, Error *err)
|
||||
}
|
||||
goto end;
|
||||
}
|
||||
vim_regfree(cmdinfo.cmdmod.cmod_filter_regmatch.regprog);
|
||||
|
||||
// Parse arguments
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
|
Reference in New Issue
Block a user