changeset 17598:c1aa462d2d45 v8.1.1796

patch 8.1.1796: :argdo is not tested commit https://github.com/vim/vim/commit/72e1b39111389001a20fbe8aa344ce2fe0a7e1a4 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Aug 2019 14:00:06 +0200
parents bdb0cb436806
children c4e9b24b4834
files src/testdir/test_arglist.vim src/version.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,