vim-patch:8.0.0525: completion for user command argument not tested (#8506)

Solution:   Completion for user command argument not tested.
Problem:    Add a test.
a33ddbbd04
This commit is contained in:
Jan Edmund Lazo
2018-06-08 18:20:09 -04:00
committed by Justin M. Keyes
parent 77192889f0
commit cca29112d5

View File

@@ -366,6 +366,15 @@ func Test_cmdline_complete_wildoptions()
bw!
endfunc
func Test_cmdline_complete_user_cmd()
command! -complete=color -nargs=1 Foo :
call feedkeys(":Foo \<Tab>\<Home>\"\<cr>", 'tx')
call assert_equal('"Foo blue', @:)
call feedkeys(":Foo b\<Tab>\<Home>\"\<cr>", 'tx')
call assert_equal('"Foo blue', @:)
delcommand Foo
endfunc
" using a leading backslash here
set cpo+=C