mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-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.
5c80908ced
This commit is contained in:
@@ -5580,7 +5580,7 @@ static void au_del_group(char_u *name)
|
||||
for (event = (event_T)0; (int)event < (int)NUM_EVENTS;
|
||||
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;
|
||||
|
Reference in New Issue
Block a user