mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -5283,8 +5283,11 @@ BufferSetattr(BufferObject *self, char *name, PyObject *valObject)
|
||||
VimTryStart();
|
||||
// Using aucmd_*: autocommands will be executed by rename_buffer
|
||||
aucmd_prepbuf(&aco, self->buf);
|
||||
ren_ret = rename_buffer(val);
|
||||
aucmd_restbuf(&aco);
|
||||
if (curbuf == self->buf)
|
||||
{
|
||||
ren_ret = rename_buffer(val);
|
||||
aucmd_restbuf(&aco);
|
||||
}
|
||||
Py_XDECREF(todecref);
|
||||
if (VimTryEnd())
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user