diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-06 22:01:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-06 22:01:42 +0200 |
commit | 402c83921e4e7ac8e9b0631dbac845f32ec7245f (patch) | |
tree | 26b87b619c1699f3787c87adbeea7f178c4aa66d /src/terminal.c | |
parent | f25329cb94e481999e8b08d886cc0f0169e2020c (diff) | |
download | vim-git-402c83921e4e7ac8e9b0631dbac845f32ec7245f.tar.gz |
patch 8.0.1802: MS-Windows: terminal test failsv8.0.1802
Problem: MS-Windows: terminal test fails.
Solution: Close redirected output file earlier.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 47f7f201d..4dd666523 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -2700,6 +2700,13 @@ term_channel_closed(channel_T *ch) VIM_CLEAR(term->tl_title); VIM_CLEAR(term->tl_status_text); +#ifdef WIN3264 + if (term->tl_out_fd != NULL) + { + fclose(term->tl_out_fd); + term->tl_out_fd = NULL; + } +#endif /* Unless in Terminal-Normal mode: clear the vterm. */ if (!term->tl_normal_mode) |