Skip to content

Commit ff1e879

Browse files
committed
patch 8.0.1601: highlight test fails on Win32
Problem: Highlight test fails on Win32. Solution: Check for vtp and vcon support.
1 parent f708ac5 commit ff1e879

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/evalfunc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6198,6 +6198,9 @@ f_has(typval_T *argvars, typval_T *rettv)
61986198
#ifdef FEAT_VREPLACE
61996199
"vreplace",
62006200
#endif
6201+
#ifdef FEAT_VTP
6202+
"vtp",
6203+
#endif
62016204
#ifdef FEAT_WILDIGN
62026205
"wildignore",
62036206
#endif

src/testdir/test_highlight.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,11 @@ func Test_termguicolors()
519519
if !exists('+termguicolors')
520520
return
521521
endif
522+
if has('vtp') && !has('vcon')
523+
" Win32: 'guicolors' doesn't work without virtual console.
524+
call assert_fails('set termguicolors', 'E954:')
525+
return
526+
endif
522527

523528
" Basic test that setting 'termguicolors' works with one color.
524529
set termguicolors

src/version.c

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

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1601,
769771
/**/
770772
1600,
771773
/**/

0 commit comments

Comments
 (0)