# HG changeset patch # User Christian Brabandt # Date 1500216303 -7200 # Node ID c66d6dc92f53a6644567b20221513e2a784dad4e # Parent 4b93af584cd59d0b469671e1e2818b08cfd68c7a patch 8.0.0723: arglist test fails if file name case is ignored commit https://github.com/vim/vim/commit/9b50bba643f8d1fcac91e11780da7d03d8995260 Author: Bram Moolenaar Date: Sun Jul 16 16:42:13 2017 +0200 patch 8.0.0723: arglist test fails if file name case is ignored Problem: Arglist test fails if file name case is ignored. Solution: Wipe existing buffers, check for fname_case property. diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -246,18 +246,37 @@ func Test_argedit() argedit a call assert_equal(['a', 'b', 'a'], argv()) call assert_equal('a', expand('%:t')) + " When file name case is ignored, an existing buffer with only case + " difference is re-used. Make sure they don't exist so the case is + " preserved. + bwipe! c + bwipe! d argedit C D call assert_equal('C', expand('%:t')) call assert_equal(['a', 'b', 'a', 'C', 'D'], argv()) argedit c - call assert_equal(['a', 'b', 'a', 'C', 'c', 'D'], argv()) + if has('fname_case') + call assert_equal(['a', 'b', 'a', 'C', 'c', 'D'], argv()) + else + call assert_equal(['a', 'b', 'a', 'C', 'C', 'D'], argv()) + endif 0argedit x - call assert_equal(['x', 'a', 'b', 'a', 'C', 'c', 'D'], argv()) + if has('fname_case') + call assert_equal(['x', 'a', 'b', 'a', 'C', 'c', 'D'], argv()) + else + call assert_equal(['x', 'a', 'b', 'a', 'C', 'C', 'D'], argv()) + endif enew! | set modified call assert_fails('argedit y', 'E37:') argedit! y - call assert_equal(['x', 'y', 'y', 'a', 'b', 'a', 'C', 'c', 'D'], argv()) + if has('fname_case') + call assert_equal(['x', 'y', 'y', 'a', 'b', 'a', 'C', 'c', 'D'], argv()) + else + call assert_equal(['x', 'y', 'y', 'a', 'b', 'a', 'C', 'C', 'D'], argv()) + endif %argd + bwipe! C + bwipe! D endfunc " Test for the :argdelete command diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 723, +/**/ 722, /**/ 721,