]> granicus.if.org Git - vim/commitdiff
patch 8.0.1802: MS-Windows: terminal test fails v8.0.1802
authorBram Moolenaar <Bram@vim.org>
Sun, 6 May 2018 20:01:42 +0000 (22:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 May 2018 20:01:42 +0000 (22:01 +0200)
Problem:    MS-Windows: terminal test fails.
Solution:   Close redirected output file earlier.

src/terminal.c
src/version.c

index 47f7f201d581dc79a7fafc6cc69607f92aa3726f..4dd666523932e66ecfeb4cec46feff4e37b319b1 100644 (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)
index 70e4bcdca3821b83dced18af00609a385fd70ffd..20f3f2fa7a5dca04977225665792eec50ac0ac7a 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1802,
 /**/
     1801,
 /**/