mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 19:18:34 +00:00
fix(api): include event in get_autocmds (#17553)
This commit is contained in:
@@ -197,6 +197,10 @@ Array nvim_get_autocmds(Dict(get_autocmds) *opts, Error *err)
|
||||
"pattern",
|
||||
STRING_OBJ(cstr_to_string((char *)ap->pat)));
|
||||
|
||||
PUT(autocmd_info,
|
||||
"event",
|
||||
STRING_OBJ(cstr_to_string((char *)event_nr2name(event))));
|
||||
|
||||
PUT(autocmd_info, "once", BOOLEAN_OBJ(ac->once));
|
||||
|
||||
if (ap->buflocal_nr) {
|
||||
|
Reference in New Issue
Block a user