changeset 13862:b201372b91a4 v8.0.1802

patch 8.0.1802: MS-Windows: terminal test fails commit https://github.com/vim/vim/commit/402c83921e4e7ac8e9b0631dbac845f32ec7245f Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 6 22:01:42 2018 +0200 patch 8.0.1802: MS-Windows: terminal test fails Problem: MS-Windows: terminal test fails. Solution: Close redirected output file earlier.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 May 2018 22:15:05 +0200
parents 7873bb154d05
children 3070049254e5
files src/terminal.c src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1802,
+/**/
     1801,
 /**/
     1800,