comparison 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
comparison
equal deleted inserted replaced
10057:e9eb10b6757d 10058:65e43481d7de
8016 8016
8017 for (event = (event_T)0; (int)event < (int)NUM_EVENTS; 8017 for (event = (event_T)0; (int)event < (int)NUM_EVENTS;
8018 event = (event_T)((int)event + 1)) 8018 event = (event_T)((int)event + 1))
8019 { 8019 {
8020 for (ap = first_autopat[(int)event]; ap != NULL; ap = ap->next) 8020 for (ap = first_autopat[(int)event]; ap != NULL; ap = ap->next)
8021 if (ap->group == i) 8021 if (ap->group == i && ap->pat != NULL)
8022 { 8022 {
8023 give_warning((char_u *)_("W19: Deleting augroup that is still in use"), TRUE); 8023 give_warning((char_u *)_("W19: Deleting augroup that is still in use"), TRUE);
8024 in_use = TRUE; 8024 in_use = TRUE;
8025 event = NUM_EVENTS; 8025 event = NUM_EVENTS;
8026 break; 8026 break;