From e76062c078debed0df818f70e4db14ad7a7cb53a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 28 Nov 2022 18:51:43 +0000 Subject: 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. --- src/ex_docmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_docmd.c') diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bb4a83163..218b7edd9 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -6050,7 +6050,7 @@ ex_win_close( buf_T *buf = win->w_buffer; // Never close the autocommand window. - if (win == aucmd_win) + if (is_aucmd_win(win)) { emsg(_(e_cannot_close_autocmd_or_popup_window)); return; -- cgit v1.2.1