]> granicus.if.org Git - vim/commitdiff
patch 8.2.3156: Vim9: term_getansicolors() test fails without +termguicolors v8.2.3156
authorDominique Pelle <dominique.pelle@gmail.com>
Mon, 12 Jul 2021 20:15:24 +0000 (22:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 12 Jul 2021 20:15:24 +0000 (22:15 +0200)
Problem:    Vim9: term_getansicolors() test fails without +termguicolors.
Solution:   Add a check for the feature. (Dominique PellĂ©, closes #8555)

src/testdir/test_vim9_builtin.vim
src/version.c

index f3e44e3b9edcf699ac35b4c6d9ed6de4b5761f17..03bc3fbe30b213544ef3ed5cf30b108dbd81e809 100644 (file)
@@ -2217,6 +2217,7 @@ enddef
 
 def Test_term_getansicolors()
   CheckRunVimInTerminal
+  CheckFeature termguicolors
   CheckDefAndScriptFailure2(['term_getansicolors(["a"])'], 'E1013: Argument 1: type mismatch, expected string but got list<string>', 'E745: Using a List as a Number')
 enddef
 
index f2f229f91621d1c0e4626b7d5ce759771fdddeae..c2314cdf2c23d3a2e839eb09e9aeb00e8100f688 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3156,
 /**/
     3155,
 /**/