1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-11-28 18:51:43 +00:00
parent 74a694dbe2
commit e76062c078
28 changed files with 451 additions and 260 deletions

View File

@@ -2872,8 +2872,14 @@ append_to_buffer(buf_T *buffer, char_u *msg, channel_T *channel, ch_part_T part)
buffer->b_p_ma = TRUE;
// set curbuf to be our buf, temporarily
// Set curbuf to "buffer", temporarily.
aucmd_prepbuf(&aco, buffer);
if (curbuf != buffer)
{
// Could not find a window for this buffer, the following might cause
// trouble, better bail out.
return;
}
u_sync(TRUE);
// ignore undo failure, undo is not very useful here