# HG changeset patch # User Bram Moolenaar # Date 1564833606 -7200 # Node ID c1aa462d2d457f31202f50941e2821a7dbaa07fc # Parent bdb0cb436806badeb86128c1175c3d2be9142c8c patch 8.1.1796: :argdo is not tested commit https://github.com/vim/vim/commit/72e1b39111389001a20fbe8aa344ce2fe0a7e1a4 Author: Bram Moolenaar Date: Sat Aug 3 13:50:08 2019 +0200 patch 8.1.1796: :argdo is not tested Problem: :argdo is not tested Solution: Add a test. 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 @@ -496,3 +496,12 @@ func Test_large_arg() exe 'argadd ' .repeat('x', &columns) args endfunc + +func Test_argdo() + next! Xa.c Xb.c Xc.c + new + let l = [] + argdo call add(l, expand('%')) + call assert_equal(['Xa.c', 'Xb.c', 'Xc.c'], l) + bwipe Xa.c Xb.c Xc.c +endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -774,6 +774,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1796, +/**/ 1795, /**/ 1794,