From: Bram Moolenaar Date: Sat, 3 Aug 2019 11:50:08 +0000 (+0200) Subject: patch 8.1.1796: :argdo is not tested X-Git-Tag: v8.1.1796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72e1b39111389001a20fbe8aa344ce2fe0a7e1a4;p=vim 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 index f161d6ec1..fc086fa43 100644 --- 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 index 10e05f4b1..2b9149095 100644 --- a/src/version.c +++ b/src/version.c @@ -773,6 +773,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1796, /**/ 1795, /**/