Mercurial > vim
diff src/fileio.c @ 10058:65e43481d7de v7.4.2300
commit https://github.com/vim/vim/commit/5c80908ced601be6db7554a147cdb0f98ac8daa1
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 16:21:48 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Sep 2016 16:30:08 +0200 |
parents | 4aead6a9b7a9 |
children | 3e410e6e1986 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -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;