forked from aniani/vim
patch 8.2.0186: a couple of tests may fail when features are missing
Problem: A couple of tests may fail when features are missing. Solution: Check for features. (Dominique Pelle, closes #5561)
This commit is contained in:
@@ -1999,7 +1999,7 @@ func Test_range()
|
||||
set tagfunc=
|
||||
|
||||
" term_start()
|
||||
if has('terminal')
|
||||
if has('terminal') && has('termguicolors')
|
||||
call assert_fails('call term_start(range(3, 4))', 'E474:')
|
||||
let g:terminal_ansi_colors = range(16)
|
||||
call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')
|
||||
|
Reference in New Issue
Block a user