changeset 14214:68166b841ee9 v8.1.0124

patch 8.1.0124: has('vcon') returns true even for non-win32 terminal commit https://github.com/vim/vim/commit/d8b37a53bd29cab78c6997aa75207385213f23e2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 15:50:28 2018 +0200 patch 8.1.0124: has('vcon') returns true even for non-win32 terminal Problem: has('vcon') returns true even for non-win32 terminal. Solution: Check the terminal type. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/3106)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 16:00:07 +0200
parents 762bd604e3b3
children b0083bebf159
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6609,7 +6609,7 @@ f_has(typval_T *argvars, typval_T *rettv
 #endif
 #ifdef FEAT_VTP
 	else if (STRICMP(name, "vcon") == 0)
-	    n = has_vtp_working();
+	    n = is_term_win32() && has_vtp_working();
 #endif
 #ifdef FEAT_NETBEANS_INTG
 	else if (STRICMP(name, "netbeans_enabled") == 0)
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    124,
+/**/
     123,
 /**/
     122,