Patch 8.2.3220

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 25, 2021, 9:42:20 AM7/25/21
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages