Skip to content

Commit

Permalink
patch 8.2.3156: Vim9: term_getansicolors() test fails without +termgu…
Browse files Browse the repository at this point in the history
…icolors

Problem:    Vim9: term_getansicolors() test fails without +termguicolors.
Solution:   Add a check for the feature. (Dominique Pellé, closes #8555)
  • Loading branch information
dpelle authored and brammool committed Jul 12, 2021
1 parent 042414f commit ee41052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/testdir/test_vim9_builtin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3156,
/**/
3155,
/**/
Expand Down

0 comments on commit ee41052

Please sign in to comment.