diff options
Diffstat (limited to 'src/autocmd.c')
-rw-r--r-- | src/autocmd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/autocmd.c b/src/autocmd.c index c09e12f404..a78e78b024 100644 --- a/src/autocmd.c +++ b/src/autocmd.c @@ -2737,6 +2737,16 @@ get_event_name(expand_T *xp UNUSED, int idx) return (char_u *)event_names[idx - augroups.ga_len].name; } +/* + * Function given to ExpandGeneric() to obtain the list of event names. Don't + * include groups. + */ + char_u * +get_event_name_no_group(expand_T *xp UNUSED, int idx) +{ + return (char_u *)event_names[idx].name; +} + #if defined(FEAT_EVAL) || defined(PROTO) /* |