summaryrefslogtreecommitdiff
path: root/src/autocmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-30 17:29:40 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-30 17:29:40 +0200
commit89adc3a1371d211f7766f3dbc0975ecb2f862327 (patch)
tree5ece2c55b14bd899f995e12df256875572c0d23f /src/autocmd.c
parent5c3fb04623d0260762f1c3c1ba250a407098ff2a (diff)
downloadvim-git-89adc3a1371d211f7766f3dbc0975ecb2f862327.tar.gz
patch 8.1.1425: win_execute() does not set window pointers properlyv8.1.1425
Problem: Win_execute() does not set window pointers properly. Solution: Use switch_win_noblock(). Also execute autocommands in a popup window.
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index 21b9ab3ba..82b58689d 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1349,7 +1349,7 @@ ex_doautoall(exarg_T *eap)
*/
FOR_ALL_BUFFERS(buf)
{
- if (buf->b_ml.ml_mfp != NULL && !bt_popup(buf))
+ if (buf->b_ml.ml_mfp != NULL)
{
// find a window for this buffer and save some values
aucmd_prepbuf(&aco, buf);
@@ -1612,8 +1612,6 @@ apply_autocmds(
int force, // when TRUE, ignore autocmd_busy
buf_T *buf) // buffer for <abuf>
{
- if (bt_popup(buf))
- return FALSE;
return apply_autocmds_group(event, fname, fname_io, force,
AUGROUP_ALL, buf, NULL);
}