Mercurial > vim
comparison src/terminal.c @ 17133:2a9a5e69fb3e v8.1.1566
patch 8.1.1566: error message when terminal closes in another tab
commit https://github.com/vim/vim/commit/517f71ab17c265602465eaee3775dcfe8afe0478
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Jun 2019 22:45:05 +0200 |
parents | a5e3509b33ca |
children | ebe9aab81898 |
comparison
equal
deleted
inserted
replaced
17132:74e996a5f46a | 17133:2a9a5e69fb3e |
---|---|
3017 | 3017 |
3018 // ++close or term_finish == "close" | 3018 // ++close or term_finish == "close" |
3019 ch_log(NULL, "terminal job finished, closing window"); | 3019 ch_log(NULL, "terminal job finished, closing window"); |
3020 aucmd_prepbuf(&aco, term->tl_buffer); | 3020 aucmd_prepbuf(&aco, term->tl_buffer); |
3021 // Avoid closing the window if we temporarily use it. | 3021 // Avoid closing the window if we temporarily use it. |
3022 if (curwin == aucmd_win) | |
3023 do_set_w_closing = TRUE; | |
3022 if (do_set_w_closing) | 3024 if (do_set_w_closing) |
3023 curwin->w_closing = TRUE; | 3025 curwin->w_closing = TRUE; |
3024 do_bufdel(DOBUF_WIPE, (char_u *)"", 1, fnum, fnum, FALSE); | 3026 do_bufdel(DOBUF_WIPE, (char_u *)"", 1, fnum, fnum, FALSE); |
3025 if (do_set_w_closing) | 3027 if (do_set_w_closing) |
3026 curwin->w_closing = FALSE; | 3028 curwin->w_closing = FALSE; |