From: Bram Moolenaar Date: Wed, 29 Mar 2017 19:30:04 +0000 (+0200) Subject: patch 8.0.0525: completion for user command argument not tested X-Git-Tag: v8.0.0525 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a33ddbbd04ca9b81cba6114708f42b8e26293b99;p=thirdparty%2Fvim.git 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 index 77c9170492..1b0597e648 100644 --- 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 index f490deba10..ba3aefc3c8 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 525, /**/ 524, /**/