]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0525: completion for user command argument not tested v8.0.0525
authorBram Moolenaar <Bram@vim.org>
Wed, 29 Mar 2017 19:30:04 +0000 (21:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 29 Mar 2017 19:30:04 +0000 (21:30 +0200)
Solution:   Completion for user command argument not tested.
Problem:    Add a test.

src/testdir/test_cmdline.vim
src/version.c

index 77c91704923ee0235b033e7030b2d68dd48731ed..1b0597e648ddf3db3fa2a115e3376f5dbd87342b 100644 (file)
@@ -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
 
index f490deba10986958425695cf717072ee483a48c2..ba3aefc3c8e3318f9a82358eaf522c8260938fdd 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    525,
 /**/
     524,
 /**/