aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-27 01:33:58 +0200
committerGitHub <noreply@github.com>2019-07-27 01:33:58 +0200
commitaf01b347d8de8abbaaf8b7c86b41328316b646d3 (patch)
tree306b558278fbb35d43cf1810f69d9dcafc5df58d /src/nvim/testdir
parente1a5c29b93be8386a67c5e8f861b89178dff6867 (diff)
parent0fb05b2c7de757f7722c4e8133fea4f5fd359a6e (diff)
downloadrneovim-af01b347d8de8abbaaf8b7c86b41328316b646d3.tar.gz
rneovim-af01b347d8de8abbaaf8b7c86b41328316b646d3.tar.bz2
rneovim-af01b347d8de8abbaaf8b7c86b41328316b646d3.zip
Merge #10606 'vim-patch:8.1.0404'
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_arglist.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim
index 3efef60f8e..db5d3558fe 100644
--- a/src/nvim/testdir/test_arglist.vim
+++ b/src/nvim/testdir/test_arglist.vim
@@ -74,7 +74,6 @@ func Test_argadd()
call assert_equal(1, len(argv()))
call assert_equal('some file', get(argv(), 0, ''))
- call delete('Xargadd')
%argd
new
arga
@@ -452,3 +451,10 @@ func Test_arg_all_expand()
call assert_equal('notexist Xx\ x runtest.vim', expand('##'))
call delete('Xx x')
endfunc
+
+func Test_large_arg()
+ " Argument longer or equal to the number of columns used to cause
+ " access to invalid memory.
+ exe 'argadd ' .repeat('x', &columns)
+ args
+endfunc