mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
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:

committed by
Justin M. Keyes

parent
77192889f0
commit
cca29112d5
@@ -366,6 +366,15 @@ func Test_cmdline_complete_wildoptions()
|
|||||||
bw!
|
bw!
|
||||||
endfunc
|
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
|
" using a leading backslash here
|
||||||
set cpo+=C
|
set cpo+=C
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user