0
0
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:
Bram Moolenaar
2017-03-29 21:30:04 +02:00
parent 8da1e6cedf
commit a33ddbbd04
2 changed files with 11 additions and 0 deletions

View File

@@ -348,6 +348,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

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
525,
/**/
524,
/**/