comparison src/ex_docmd.c @ 31263:d8e7d725a666 v9.0.0965

patch 9.0.0965: using one window for executing autocommands is insufficient Commit: https://github.com/vim/vim/commit/e76062c078debed0df818f70e4db14ad7a7cb53a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 28 18:51:43 2022 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Nov 2022 20:00:05 +0100
parents bcda71c89776
children 5acc0d2cf4f7
comparison
equal deleted inserted replaced
31262:7f766b7e17d5 31263:d8e7d725a666
6048 { 6048 {
6049 int need_hide; 6049 int need_hide;
6050 buf_T *buf = win->w_buffer; 6050 buf_T *buf = win->w_buffer;
6051 6051
6052 // Never close the autocommand window. 6052 // Never close the autocommand window.
6053 if (win == aucmd_win) 6053 if (is_aucmd_win(win))
6054 { 6054 {
6055 emsg(_(e_cannot_close_autocmd_or_popup_window)); 6055 emsg(_(e_cannot_close_autocmd_or_popup_window));
6056 return; 6056 return;
6057 } 6057 }
6058 if (window_layout_locked(CMD_close)) 6058 if (window_layout_locked(CMD_close))