diff options
| author | Marco Hinz <mh.codebro@gmail.com> | 2021-05-12 00:44:39 +0200 |
|---|---|---|
| committer | Marco Hinz <mh.codebro@gmail.com> | 2021-05-12 00:47:21 +0200 |
| commit | 4ba3d059bfcd5b08b0831e7d71de26284db6dcb9 (patch) | |
| tree | 91315ea95b65d83bb313d43d3141f9adf60663a0 /src/nvim/testdir/test_arglist.vim | |
| parent | 7d82ea01025b6981e0233ca9a5e7ee62c8b5bcad (diff) | |
| download | rneovim-4ba3d059bfcd5b08b0831e7d71de26284db6dcb9.tar.gz rneovim-4ba3d059bfcd5b08b0831e7d71de26284db6dcb9.tar.bz2 rneovim-4ba3d059bfcd5b08b0831e7d71de26284db6dcb9.zip | |
Revert "vim-patch:8.1.1378: delete() can not handle a file name that looks like a pattern (#12784)"
This reverts commit 4be0e92db01a502863ac4bb26dd0fee16d833145.
Unfortunately, that commit stalled the Windows builds on GHA and likely requires
other patches to work properly.
Diffstat (limited to 'src/nvim/testdir/test_arglist.vim')
| -rw-r--r-- | src/nvim/testdir/test_arglist.vim | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index 08e578a226..a1ef8325ec 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -26,8 +26,6 @@ func Test_argidx() endfunc func Test_argadd() - call Reset_arglist() - %argdelete argadd a b c call assert_equal(0, argidx()) @@ -105,11 +103,6 @@ func Init_abc() next endfunc -func Reset_arglist() - cd - args a | %argd -endfunc - func Assert_argc(l) call assert_equal(len(a:l), argc()) let i = 0 @@ -122,7 +115,8 @@ endfunc " Test for [count]argument and [count]argdelete commands " Ported from the test_argument_count.in test script func Test_argument() - call Reset_arglist() + " Clean the argument list + arga a | %argd let save_hidden = &hidden set hidden @@ -250,7 +244,8 @@ endfunc " Test for 0argadd and 0argedit " Ported from the test_argument_0count.in test script func Test_zero_argadd() - call Reset_arglist() + " Clean the argument list + arga a | %argd arga a b c d 2argu @@ -277,6 +272,10 @@ func Test_zero_argadd() call assert_equal('file with spaces', expand('%')) endfunc +func Reset_arglist() + args a | %argd +endfunc + " Test for argc() func Test_argc() call Reset_arglist() @@ -409,7 +408,6 @@ endfunc " Test for the :argdelete command func Test_argdelete() call Reset_arglist() - args aa a aaa b bb argdelete a* call assert_equal(['b', 'bb'], argv()) |