aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_cmdline.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim
index 58d37b5da7..506b3d41ff 100644
--- a/test/old/testdir/test_cmdline.vim
+++ b/test/old/testdir/test_cmdline.vim
@@ -3636,4 +3636,14 @@ func Test_rulerformat_position()
call StopVimInTerminal(buf)
endfunc
+func Test_usercmd_completion()
+ let g:complete=[]
+ command! -nargs=* -complete=command TestCompletion echo <q-args>
+ let g:complete = getcompletion('TestCompletion ', 'cmdline')
+ let a = getcompletion('', 'cmdline')
+
+ call assert_equal(a, g:complete)
+ delcom TestCompletion
+ unlet! g:complete
+endfunc
" vim: shiftwidth=2 sts=2 expandtab