0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 7.4.2300

Problem:    Get warning for deleting autocommand group when the autocommand
            using the group is scheduled for deletion. (Pavol Juhas)
Solution:   Check for deleted autocommand.
This commit is contained in:
Bram Moolenaar
2016-09-01 16:21:48 +02:00
parent 04c4ce650f
commit 5c80908ced
3 changed files with 18 additions and 1 deletions

View File

@@ -8018,7 +8018,7 @@ au_del_group(char_u *name)
event = (event_T)((int)event + 1))
{
for (ap = first_autopat[(int)event]; ap != NULL; ap = ap->next)
if (ap->group == i)
if (ap->group == i && ap->pat != NULL)
{
give_warning((char_u *)_("W19: Deleting augroup that is still in use"), TRUE);
in_use = TRUE;