0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #10144)
            Rename AutoPatCmd to AutoPatCmd_T.
This commit is contained in:
LemonBoy
2022-04-14 15:39:43 +01:00
committed by Bram Moolenaar
parent 8944551534
commit eca7c60d68
6 changed files with 86 additions and 48 deletions

View File

@@ -2073,7 +2073,7 @@ struct partial_S
dict_T *pt_dict; // dict for "self"
};
typedef struct AutoPatCmd_S AutoPatCmd;
typedef struct AutoPatCmd_S AutoPatCmd_T;
/*
* Entry in the execution stack "exestack".
@@ -2100,7 +2100,7 @@ typedef struct {
#if defined(FEAT_EVAL)
ufunc_T *ufunc; // function info
#endif
AutoPatCmd *aucmd; // autocommand info
AutoPatCmd_T *aucmd; // autocommand info
except_T *except; // exception info
} es_info;
#if defined(FEAT_EVAL)