mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 04:58:33 +00:00
vim-patch:8.2.3886: can define autocmd for every event by using "au!"
Problem: Can define autocmd for every event by using "au!".
Solution: Check if a command is present also for "au!".
b6db146762
This commit is contained in:
@@ -881,7 +881,7 @@ void do_autocmd(char *arg_in, int forceit)
|
||||
}
|
||||
} else {
|
||||
if (*arg == '*' || *arg == NUL || *arg == '|') {
|
||||
if (!forceit && *cmd != NUL) {
|
||||
if (*cmd != NUL) {
|
||||
emsg(_(e_cannot_define_autocommands_for_all_events));
|
||||
} else {
|
||||
do_all_autocmd_events(pat, once, nested, cmd, forceit, group);
|
||||
|
Reference in New Issue
Block a user