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.
diff --git a/src/structs.h b/src/structs.h
index 05ea6fc..176a86c 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -2073,7 +2073,7 @@
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 @@
#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)