diff src/evalfunc.c @ 12144:abd69cea3459 v8.0.0952

patch 8.0.0952: has('terminal') does not check existence of dll file commit https://github.com/vim/vim/commit/a83e3962ac0e4bbfef15a072ad9a7390fc255409 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 17 14:39:07 2017 +0200 patch 8.0.0952: has('terminal') does not check existence of dll file Problem: MS-Windows: has('terminal') does not check existence of dll file. Solution: Check if the winpty dll file can be loaded. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Aug 2017 14:45:04 +0200
parents 60cf03e59402
children f9de19f981a4
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -5926,7 +5926,7 @@ f_has(typval_T *argvars, typval_T *rettv
 #ifdef FEAT_TERMGUICOLORS
 	"termguicolors",
 #endif
-#ifdef FEAT_TERMINAL
+#if defined(FEAT_TERMINAL) && !defined(WIN3264)
 	"terminal",
 #endif
 #ifdef TERMINFO
@@ -6134,6 +6134,10 @@ f_has(typval_T *argvars, typval_T *rettv
 	else if (STRICMP(name, "netbeans_enabled") == 0)
 	    n = netbeans_active();
 #endif
+#if defined(FEAT_TERMINAL) && defined(WIN3264)
+	else if (STRICMP(name, "terminal") == 0)
+	    n = terminal_enabled();
+#endif
     }
 
     rettv->vval.v_number = n;