0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2018-06-28 15:50:28 +02:00
parent b0eb14f939
commit d8b37a53bd
2 changed files with 3 additions and 1 deletions

View File

@@ -6609,7 +6609,7 @@ f_has(typval_T *argvars, typval_T *rettv)
#endif #endif
#ifdef FEAT_VTP #ifdef FEAT_VTP
else if (STRICMP(name, "vcon") == 0) else if (STRICMP(name, "vcon") == 0)
n = has_vtp_working(); n = is_term_win32() && has_vtp_working();
#endif #endif
#ifdef FEAT_NETBEANS_INTG #ifdef FEAT_NETBEANS_INTG
else if (STRICMP(name, "netbeans_enabled") == 0) else if (STRICMP(name, "netbeans_enabled") == 0)

View File

@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
124,
/**/ /**/
123, 123,
/**/ /**/