Skip to content

Commit 94255df

Browse files
committed
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)
1 parent eed3571 commit 94255df

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/testdir/test_functions.vim

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,7 @@ func Test_range()
19651965

19661966
" settagstack()
19671967
call settagstack(1, #{items : range(4)})
1968-
1968+
19691969
" sign_define()
19701970
call assert_fails("call sign_define(range(5))", "E715:")
19711971
call assert_fails("call sign_placelist(range(5))", "E715:")
@@ -1997,12 +1997,17 @@ func Test_range()
19971997
set tagfunc=TagFunc
19981998
call assert_fails("call taglist('asdf')", 'E987:')
19991999
set tagfunc=
2000-
2000+
20012001
" term_start()
20022002
if has('terminal') && has('termguicolors')
20032003
call assert_fails('call term_start(range(3, 4))', 'E474:')
20042004
let g:terminal_ansi_colors = range(16)
2005-
call assert_fails('call term_start("ls", #{term_finish: "close"})', 'E475:')
2005+
if has('win32')
2006+
let cmd = "cmd /c dir"
2007+
else
2008+
let cmd = "ls"
2009+
endif
2010+
call assert_fails('call term_start("' .. cmd .. '", #{term_finish: "close"})', 'E475:')
20062011
unlet g:terminal_ansi_colors
20072012
endif
20082013

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
211,
745747
/**/
746748
210,
747749
/**/

0 commit comments

Comments
 (0)