Permalink
Browse files

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 #3106)
  • Loading branch information...
brammool committed Jun 28, 2018
1 parent b0eb14f commit d8b37a53bd29cab78c6997aa75207385213f23e2
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/evalfunc.c
  2. +2 −0 src/version.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)
@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
124,
/**/
123,
/**/

0 comments on commit d8b37a5

Please sign in to comment.