Mercurial > vim
comparison src/structs.h @ 28449:80ed5ad30d28 v8.2.4749
patch 8.2.4749: <script> is not expanded in autocmd context
Commit: https://github.com/vim/vim/commit/eca7c60d68e63001dbe3c8e5d240b0895e607fc3
Author: LemonBoy <thatlemon@gmail.com>
Date: Thu Apr 14 15:39:43 2022 +0100
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 https://github.com/vim/vim/issues/10144)
Rename AutoPatCmd to AutoPatCmd_T.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Apr 2022 16:45:02 +0200 |
parents | 367439b95aba |
children | 9ff0e5a29037 |
comparison
equal
deleted
inserted
replaced
28448:68c4651c8dfc | 28449:80ed5ad30d28 |
---|---|
2071 | 2071 |
2072 int pt_copyID; // funcstack may contain pointer to partial | 2072 int pt_copyID; // funcstack may contain pointer to partial |
2073 dict_T *pt_dict; // dict for "self" | 2073 dict_T *pt_dict; // dict for "self" |
2074 }; | 2074 }; |
2075 | 2075 |
2076 typedef struct AutoPatCmd_S AutoPatCmd; | 2076 typedef struct AutoPatCmd_S AutoPatCmd_T; |
2077 | 2077 |
2078 /* | 2078 /* |
2079 * Entry in the execution stack "exestack". | 2079 * Entry in the execution stack "exestack". |
2080 */ | 2080 */ |
2081 typedef enum { | 2081 typedef enum { |
2098 union { | 2098 union { |
2099 sctx_T *sctx; // script and modeline info | 2099 sctx_T *sctx; // script and modeline info |
2100 #if defined(FEAT_EVAL) | 2100 #if defined(FEAT_EVAL) |
2101 ufunc_T *ufunc; // function info | 2101 ufunc_T *ufunc; // function info |
2102 #endif | 2102 #endif |
2103 AutoPatCmd *aucmd; // autocommand info | 2103 AutoPatCmd_T *aucmd; // autocommand info |
2104 except_T *except; // exception info | 2104 except_T *except; // exception info |
2105 } es_info; | 2105 } es_info; |
2106 #if defined(FEAT_EVAL) | 2106 #if defined(FEAT_EVAL) |
2107 sctx_T es_save_sctx; // saved current_sctx when calling function | 2107 sctx_T es_save_sctx; // saved current_sctx when calling function |
2108 #endif | 2108 #endif |