1
0
forked from aniani/vim

patch 8.0.1802: MS-Windows: terminal test fails

Problem:    MS-Windows: terminal test fails.
Solution:   Close redirected output file earlier.
This commit is contained in:
Bram Moolenaar
2018-05-06 22:01:42 +02:00
parent f25329cb94
commit 402c83921e
2 changed files with 9 additions and 0 deletions

View File

@@ -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)