mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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.
This commit is contained in:
@@ -845,6 +845,7 @@ do_autocmd(exarg_T *eap, char_u *arg_in, int forceit)
|
||||
|
||||
if (*arg == '|')
|
||||
{
|
||||
eap->nextcmd = arg + 1;
|
||||
arg = (char_u *)"";
|
||||
group = AUGROUP_ALL; // no argument, use all groups
|
||||
}
|
||||
@@ -869,6 +870,7 @@ do_autocmd(exarg_T *eap, char_u *arg_in, int forceit)
|
||||
pat = skipwhite(pat);
|
||||
if (*pat == '|')
|
||||
{
|
||||
eap->nextcmd = pat + 1;
|
||||
pat = (char_u *)"";
|
||||
cmd = (char_u *)"";
|
||||
}
|
||||
|
Reference in New Issue
Block a user