summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-29 21:30:04 +0200
committerBram Moolenaar <Bram@vim.org>2017-03-29 21:30:04 +0200
commita33ddbbd04ca9b81cba6114708f42b8e26293b99 (patch)
tree0e3e74a452971677028fc1d963c149ff5e4105c0
parent8da1e6cedf839902e15987a98733ebd31b5f1b81 (diff)
downloadvim-git-a33ddbbd04ca9b81cba6114708f42b8e26293b99.tar.gz
patch 8.0.0525: completion for user command argument not testedv8.0.0525
Solution: Completion for user command argument not tested. Problem: Add a test.
-rw-r--r--src/testdir/test_cmdline.vim9
-rw-r--r--src/version.c2
2 files changed, 11 insertions, 0 deletions
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 \<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
diff --git a/src/version.c b/src/version.c
index f490deba1..ba3aefc3c 100644
--- 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,