mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:8.2.3626: "au! event" cannot be followed by another command
Problem: "au!" and "au! event" cannot be followed by another command as
documented.
Solution: When a bar is found set nextcmd.
b8e642f7ac
Cherry-pick do_autocmd() "eap" argument from patch 8.2.3268.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -4231,7 +4231,7 @@ static void ex_autocmd(exarg_T *eap)
|
||||
secure = 2;
|
||||
eap->errmsg = _(e_curdir);
|
||||
} else if (eap->cmdidx == CMD_autocmd) {
|
||||
do_autocmd(eap->arg, eap->forceit);
|
||||
do_autocmd(eap, eap->arg, eap->forceit);
|
||||
} else {
|
||||
do_augroup(eap->arg, eap->forceit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user