diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 19:50:51 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 19:52:39 +0800 |
commit | 609c0513cac7898782c55f5fb20275733cc566e9 (patch) | |
tree | 170c9600b5a1aa505d29d24954b1ec0367692cc4 /src/nvim/ex_docmd.c | |
parent | a6f972cb6a5ad47613374570d88df2570ae92b9a (diff) | |
download | rneovim-609c0513cac7898782c55f5fb20275733cc566e9.tar.gz rneovim-609c0513cac7898782c55f5fb20275733cc566e9.tar.bz2 rneovim-609c0513cac7898782c55f5fb20275733cc566e9.zip |
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.
https://github.com/vim/vim/commit/b8e642f7ace5382b4dacb7a8effd86f22b828cc1
Cherry-pick do_autocmd() "eap" argument from patch 8.2.3268.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 5bb7cb2da2..992cd9478d 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); } |