diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-17 22:40:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-17 22:40:41 +0200 |
commit | 517f71ab17c265602465eaee3775dcfe8afe0478 (patch) | |
tree | 669ec9e567c9f98e6a143a59e63e6a301673a198 /src/terminal.c | |
parent | 9b283523f2f75b45feef902b8713808e883d9c19 (diff) | |
download | vim-git-517f71ab17c265602465eaee3775dcfe8afe0478.tar.gz |
patch 8.1.1566: error message when terminal closes in another tabv8.1.1566
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)
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 1764b052d..21026e2f7 100644 --- 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); |