From cca29112d52aaba97a93d8bad4c15c20b9998f53 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 8 Jun 2018 18:20:09 -0400 Subject: vim-patch:8.0.0525: completion for user command argument not tested (#8506) Solution: Completion for user command argument not tested. Problem: Add a test. https://github.com/vim/vim/commit/a33ddbbd04ca9b81cba6114708f42b8e26293b99 --- src/nvim/testdir/test_cmdline.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 8139f00f0e..a998bd90f1 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -366,6 +366,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 -- cgit