diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-29 21:30:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-29 21:30:04 +0200 |
commit | a33ddbbd04ca9b81cba6114708f42b8e26293b99 (patch) | |
tree | 0e3e74a452971677028fc1d963c149ff5e4105c0 /src/testdir/test_cmdline.vim | |
parent | 8da1e6cedf839902e15987a98733ebd31b5f1b81 (diff) |
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.
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 9 |
1 files changed, 9 insertions, 0 deletions
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 \<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 |