summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-26 19:44:06 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-26 19:44:06 +0200
commitcf8441704d6e517bda1899f4afa82c6b4eecbaec (patch)
tree426b55ece4b23b41dfdbade5c64aeaafe3db8693 /src/window.c
parentfc838d6cb0f22c77a6ee2befd034b593e1c5ea06 (diff)
downloadvim-git-cf8441704d6e517bda1899f4afa82c6b4eecbaec.tar.gz
patch 8.2.1059: crash when using :tabonly in an autocommandv8.2.1059
Problem: Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan) Solution: Do not allow the autocommand window to be closed.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 095eabed2..e2adc0cb9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2461,7 +2461,7 @@ win_close(win_T *win, int free_buf)
return FAIL; // window is already being closed
if (win_unlisted(win))
{
- emsg(_("E813: Cannot close autocmd or popup window"));
+ emsg(_(e_autocmd_close));
return FAIL;
}
if ((firstwin == aucmd_win || lastwin == aucmd_win) && one_window())