# HG changeset patch # User Bram Moolenaar # Date 1560804305 -7200 # Node ID 2a9a5e69fb3e39751447e38523d5f8f08b2d2023 # Parent 74e996a5f46a742d5cc3d4aaa4d2e33a9b805044 patch 8.1.1566: error message when terminal closes in another tab commit https://github.com/vim/vim/commit/517f71ab17c265602465eaee3775dcfe8afe0478 Author: Bram Moolenaar Date: Mon Jun 17 22:40:41 2019 +0200 patch 8.1.1566: error message when terminal closes in another tab Problem: Error message when terminal closes while it is not in the current tab. Solution: Also set "do_set_w_closing" when using the special autocommand window. (closes #4552) diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -3019,6 +3019,8 @@ term_after_channel_closed(term_T *term) ch_log(NULL, "terminal job finished, closing window"); aucmd_prepbuf(&aco, term->tl_buffer); // Avoid closing the window if we temporarily use it. + if (curwin == aucmd_win) + do_set_w_closing = TRUE; if (do_set_w_closing) curwin->w_closing = TRUE; do_bufdel(DOBUF_WIPE, (char_u *)"", 1, fnum, fnum, FALSE); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1566, +/**/ 1565, /**/ 1564,