Patch 8.2.3220
Problem: Test_term_setansicolors() fails in some configurations.
Solution: Check available features. (Dominique Pellé, closes #8636)
Files: src/testdir/test_vim9_builtin.vim
*** ../vim-8.2.3219/src/testdir/test_vim9_builtin.vim 2021-07-24
21:33:22.391681954 +0200
--- src/testdir/test_vim9_builtin.vim 2021-07-25 15:40:29.860757342 +0200
***************
*** 3352,3359 ****
def Test_term_setansicolors()
CheckRunVimInTerminal
! CheckDefAndScriptFailure2(['term_setansicolors([], "p")'], 'E1013: Argument
1: type mismatch, expected string but got list<unknown>', 'E1174: String
required for argument 1')
! CheckDefAndScriptFailure2(['term_setansicolors(10, {})'], 'E1013: Argument
2: type mismatch, expected list<any> but got dict<unknown>', 'E1211: List
required for argument 2')
enddef
def Test_term_setapi()
--- 3352,3364 ----
def Test_term_setansicolors()
CheckRunVimInTerminal
!
! if has('termguicolors') || has('gui')
! CheckDefAndScriptFailure2(['term_setansicolors([], "p")'], 'E1013:
Argument 1: type mismatch, expected string but got list<unknown>', 'E1174:
String required for argument 1')
! CheckDefAndScriptFailure2(['term_setansicolors(10, {})'], 'E1013:
Argument 2: type mismatch, expected list<any> but got dict<unknown>', 'E1211:
List required for argument 2')
! else
! throw 'Skipped: Only works with termguicolors or gui feature'
! endif
enddef
def Test_term_setapi()
*** ../vim-8.2.3219/src/version.c 2021-07-25 15:08:02.529317394 +0200
--- src/version.c 2021-07-25 15:40:21.096780755 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3220,
/**/
--
hundred-and-one symptoms of being an internet addict:
235. You start naming your kids Pascal, COBOL, Algol and Fortran.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202107251342.16PDgC6o1079151%40masaka.moolenaar.net.