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:
@@ -2786,8 +2786,12 @@ ex_diffgetput(exarg_T *eap)
|
||||
idx_to = idx_other;
|
||||
// Need to make the other buffer the current buffer to be able to make
|
||||
// changes in it.
|
||||
// set curwin/curbuf to buf and save a few things
|
||||
// Set curwin/curbuf to buf and save a few things.
|
||||
aucmd_prepbuf(&aco, curtab->tp_diffbuf[idx_other]);
|
||||
if (curbuf != curtab->tp_diffbuf[idx_other])
|
||||
// Could not find a window for this buffer, the rest is likely to
|
||||
// fail.
|
||||
goto theend;
|
||||
}
|
||||
|
||||
// May give the warning for a changed buffer here, which can trigger the
|
||||
|
Reference in New Issue
Block a user