aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_usercommands.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-20 07:48:52 +0800
committerGitHub <noreply@github.com>2022-12-20 07:48:52 +0800
commitb3c9563e6b7f217e4cc6c0e426af867d42b683cc (patch)
treefb612132b6d4f257d4ada5abe5c2db331c38b6e4 /src/nvim/testdir/test_usercommands.vim
parent23d8f5b870ab2a12882ba20e32d24b31c137f6a9 (diff)
parentff62d761938e72129f6ba7ed2c2d56455444ebe7 (diff)
downloadrneovim-b3c9563e6b7f217e4cc6c0e426af867d42b683cc.tar.gz
rneovim-b3c9563e6b7f217e4cc6c0e426af867d42b683cc.tar.bz2
rneovim-b3c9563e6b7f217e4cc6c0e426af867d42b683cc.zip
Merge pull request #21477 from zeertzjq/vim-9.0.1078
vim-patch:9.0.{1078,1079}
Diffstat (limited to 'src/nvim/testdir/test_usercommands.vim')
-rw-r--r--src/nvim/testdir/test_usercommands.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_usercommands.vim b/src/nvim/testdir/test_usercommands.vim
index 6a985d78aa..3ae990e022 100644
--- a/src/nvim/testdir/test_usercommands.vim
+++ b/src/nvim/testdir/test_usercommands.vim
@@ -323,6 +323,11 @@ func Test_CmdErrors()
call assert_fails('com DoCmd :', 'E174:')
comclear
call assert_fails('delcom DoCmd', 'E184:')
+
+ " These used to leak memory
+ call assert_fails('com! -complete=custom,CustomComplete _ :', 'E182:')
+ call assert_fails('com! -complete=custom,CustomComplete docmd :', 'E183:')
+ call assert_fails('com! -complete=custom,CustomComplete -xxx DoCmd :', 'E181:')
endfunc
func CustomComplete(A, L, P)