diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-05-18 09:51:26 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 09:51:26 -0600 |
commit | 8a9ab88945cdabcbd23f23406353ec6110fefa83 (patch) | |
tree | 5e71bf2543032471d30fce29ced806bf07021bfd /src/nvim/autocmd.h | |
parent | d7dd6007167eac919205404bc4e556237118a7a7 (diff) | |
download | rneovim-8a9ab88945cdabcbd23f23406353ec6110fefa83.tar.gz rneovim-8a9ab88945cdabcbd23f23406353ec6110fefa83.tar.bz2 rneovim-8a9ab88945cdabcbd23f23406353ec6110fefa83.zip |
feat(api): enable nvim_exec_autocmds to pass arbitrary data (#18613)
Add a "data" key to nvim_exec_autocmds that passes arbitrary data (API
objects) to autocommand callbacks.
Diffstat (limited to 'src/nvim/autocmd.h')
-rw-r--r-- | src/nvim/autocmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/autocmd.h b/src/nvim/autocmd.h index d3503672fd..47f583ae13 100644 --- a/src/nvim/autocmd.h +++ b/src/nvim/autocmd.h @@ -57,6 +57,7 @@ typedef struct AutoPatCmd { char *tail; // tail of fname event_T event; // current event int arg_bufnr; // initially equal to <abuf>, set to zero when buf is deleted + Object *data; // arbitrary data struct AutoPatCmd *next; // chain of active apc-s for auto-invalidation } AutoPatCmd; |