From a33ddbbd04ca9b81cba6114708f42b8e26293b99 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 29 Mar 2017 21:30:04 +0200 Subject: patch 8.0.0525: completion for user command argument not tested Solution: Completion for user command argument not tested. Problem: Add a test. --- src/testdir/test_cmdline.vim | 9 +++++++++ src/version.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 77c917049..1b0597e64 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 f490deba1..ba3aefc3c 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, /**/ -- cgit v1.2.1