fix(autocmd): clean up autocmds only when needed (#17593)

This commit is contained in:
Jaehwang Jung
2022-03-04 17:25:09 +09:00
committed by GitHub
parent e23af71d35
commit d5bd7ffe51

View File

@@ -239,7 +239,6 @@ void aupat_del_for_event_and_group(event_T event, int group)
}
}
au_need_clean = true;
au_cleanup(); // may really delete removed patterns/commands now
}