mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.0211: test for ANSI colors fails without an "ls" command
Problem: Test for ANSI colors fails without an "ls" command. Solution: Use "dir". (Ken Takata, closes #5582)
This commit is contained in:
@@ -2002,7 +2002,12 @@ func Test_range()
|
|||||||
if has('terminal') && has('termguicolors')
|
if has('terminal') && has('termguicolors')
|
||||||
call assert_fails('call term_start(range(3, 4))', 'E474:')
|
call assert_fails('call term_start(range(3, 4))', 'E474:')
|
||||||
let g:terminal_ansi_colors = range(16)
|
let g:terminal_ansi_colors = range(16)
|
||||||
call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')
|
if has('win32')
|
||||||
|
let cmd = "cmd /c dir"
|
||||||
|
else
|
||||||
|
let cmd = "ls"
|
||||||
|
endif
|
||||||
|
call assert_fails('call term_start("' .. cmd .. '", #{term_finish: "close"})', 'E475:')
|
||||||
unlet g:terminal_ansi_colors
|
unlet g:terminal_ansi_colors
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
211,
|
||||||
/**/
|
/**/
|
||||||
210,
|
210,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user