forked from aniani/vim
patch 8.0.1601: highlight test fails on Win32
Problem: Highlight test fails on Win32. Solution: Check for vtp and vcon support.
This commit is contained in:
@@ -6198,6 +6198,9 @@ f_has(typval_T *argvars, typval_T *rettv)
|
|||||||
#ifdef FEAT_VREPLACE
|
#ifdef FEAT_VREPLACE
|
||||||
"vreplace",
|
"vreplace",
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef FEAT_VTP
|
||||||
|
"vtp",
|
||||||
|
#endif
|
||||||
#ifdef FEAT_WILDIGN
|
#ifdef FEAT_WILDIGN
|
||||||
"wildignore",
|
"wildignore",
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -519,6 +519,11 @@ func Test_termguicolors()
|
|||||||
if !exists('+termguicolors')
|
if !exists('+termguicolors')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
if has('vtp') && !has('vcon')
|
||||||
|
" Win32: 'guicolors' doesn't work without virtual console.
|
||||||
|
call assert_fails('set termguicolors', 'E954:')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" Basic test that setting 'termguicolors' works with one color.
|
" Basic test that setting 'termguicolors' works with one color.
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
|||||||
@@ -766,6 +766,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 */
|
||||||
|
/**/
|
||||||
|
1601,
|
||||||
/**/
|
/**/
|
||||||
1600,
|
1600,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user