mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:9.0.0965: using one window for executing autocommands is insufficient
Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.e76062c078
N/A patches for version.c: vim-patch:9.0.0966: some compilers don't allow a declaration after a label Problem: Some compilers don't allow a declaration after a label. Solution: Move the declaration to the start of the block. (John Marriott)f86490ed4f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -683,8 +683,10 @@ void ex_listdo(exarg_T *eap)
|
||||
curbuf);
|
||||
} else {
|
||||
aucmd_prepbuf(&aco, buf);
|
||||
apply_autocmds(EVENT_SYNTAX, buf->b_p_syn, buf->b_fname, true, buf);
|
||||
aucmd_restbuf(&aco);
|
||||
if (curbuf == buf) {
|
||||
apply_autocmds(EVENT_SYNTAX, buf->b_p_syn, buf->b_fname, true, buf);
|
||||
aucmd_restbuf(&aco);
|
||||
}
|
||||
}
|
||||
|
||||
// start over, in case autocommands messed things up.
|
||||
|
Reference in New Issue
Block a user