]> granicus.if.org Git - vim/commitdiff
patch 8.1.0124: has('vcon') returns true even for non-win32 terminal v8.1.0124
authorBram Moolenaar <Bram@vim.org>
Thu, 28 Jun 2018 13:50:28 +0000 (15:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 28 Jun 2018 13:50:28 +0000 (15:50 +0200)
Problem:    has('vcon') returns true even for non-win32 terminal.
Solution:   Check the terminal type. (Nobuhiro Takasaki, closes #3106)

src/evalfunc.c
src/version.c

index cec6dabb4a7a58934e657548b00adfbaa9c17185..ce45ad82a502d42d6c94512731ed6c9b38744d08 100644 (file)
@@ -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)
index a2780f47073046f7955cb9c0ffe76e2fcbbb7338..86e24fdc1086622ed66ef9d001ed63b9c71e833c 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    124,
 /**/
     123,
 /**/