mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.0.0525: completion for user command argument not tested
Solution: Completion for user command argument not tested. Problem: Add a test.
This commit is contained in:
@@ -348,6 +348,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
|
||||||
|
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
525,
|
||||||
/**/
|
/**/
|
||||||
524,
|
524,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user