Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbra committed Jul 17, 2023
1 parent bce1979 commit a05bedb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/testdir/test_cmdline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3498,4 +3498,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

0 comments on commit a05bedb

Please sign in to comment.