mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:8.2.4749: <script> is not expanded in autocmd context
Problem: <script> is not expanded in autocmd context.
Solution: Add the context to the pattern struct. (closes vim/vim#10144)
Rename AutoPatCmd to AutoPatCmd_T.
eca7c60d68
Omit AutoPatCmd -> AutoPatCmd_T rename as it is inconsistent.
Use `.sn_name` instead of `->sn_name` as v8.2.0154 hasn't been ported.
Omit acp_script_stx(), use member directly.
This commit is contained in:
@@ -29,7 +29,7 @@ struct AutoCmd_S {
|
||||
bool nested; // If autocommands nest here
|
||||
bool last; // last command in list
|
||||
int64_t id; // ID used for uniquely tracking an autocmd.
|
||||
sctx_T script_ctx; // script context where defined
|
||||
sctx_T script_ctx; // script context where it is defined
|
||||
char *desc; // Description for the autocmd.
|
||||
AutoCmd *next; // Next AutoCmd in list
|
||||
};
|
||||
@@ -59,6 +59,7 @@ struct AutoPatCmd_S {
|
||||
char *sfname; // sfname to match with
|
||||
char *tail; // tail of fname
|
||||
event_T event; // current event
|
||||
sctx_T script_ctx; // script context where it is defined
|
||||
int arg_bufnr; // initially equal to <abuf>, set to zero when buf is deleted
|
||||
Object *data; // arbitrary data
|
||||
AutoPatCmd *next; // chain of active apc-s for auto-invalidation
|
||||
|
Reference in New Issue
Block a user