Skip to content

Commit d8b37a5

Browse files
committed
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)
1 parent b0eb14f commit d8b37a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/evalfunc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6609,7 +6609,7 @@ f_has(typval_T *argvars, typval_T *rettv)
66096609
#endif
66106610
#ifdef FEAT_VTP
66116611
else if (STRICMP(name, "vcon") == 0)
6612-
n = has_vtp_working();
6612+
n = is_term_win32() && has_vtp_working();
66136613
#endif
66146614
#ifdef FEAT_NETBEANS_INTG
66156615
else if (STRICMP(name, "netbeans_enabled") == 0)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
124,
792794
/**/
793795
123,
794796
/**/

0 commit comments

Comments
 (0)