# HG changeset patch # User Christian Brabandt # Date 1490816704 -7200 # Node ID b19377368387a0d9d011fcd200902ea4c2b50e16 # Parent d4733fde2c25b8c4eb859b5864ff0bc96f87f5d7 patch 8.0.0525: completion for user command argument not tested commit https://github.com/vim/vim/commit/a33ddbbd04ca9b81cba6114708f42b8e26293b99 Author: Bram Moolenaar Date: Wed Mar 29 21:30:04 2017 +0200 patch 8.0.0525: completion for user command argument not tested Solution: Completion for user command argument not tested. Problem: Add a test. diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -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 \\\"\", 'tx') + call assert_equal('"Foo blue', @:) + call feedkeys(":Foo b\\\"\", 'tx') + call assert_equal('"Foo blue', @:) + delcommand Foo +endfunc + " using a leading backslash here set cpo+=C diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 525, +/**/ 524, /**/ 523,