Skip to content

Commit a33ddbb

Browse files
committed
patch 8.0.0525: completion for user command argument not tested
Solution: Completion for user command argument not tested. Problem: Add a test.
1 parent 8da1e6c commit a33ddbb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/testdir/test_cmdline.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,15 @@ func Test_cmdline_complete_wildoptions()
348348
bw!
349349
endfunc
350350

351+
func Test_cmdline_complete_user_cmd()
352+
command! -complete=color -nargs=1 Foo :
353+
call feedkeys(":Foo \<Tab>\<Home>\"\<cr>", 'tx')
354+
call assert_equal('"Foo blue', @:)
355+
call feedkeys(":Foo b\<Tab>\<Home>\"\<cr>", 'tx')
356+
call assert_equal('"Foo blue', @:)
357+
delcommand Foo
358+
endfunc
359+
351360
" using a leading backslash here
352361
set cpo+=C
353362

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
525,
767769
/**/
768770
524,
769771
/**/

0 commit comments

Comments
 (0)