aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-08 18:20:09 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-09 00:20:09 +0200
commitcca29112d52aaba97a93d8bad4c15c20b9998f53 (patch)
tree977d4b8f0acecbcd85acdd6cb602f7470483d11d
parent77192889f09a118c8993af79b2eaa7f43623b6c2 (diff)
downloadrneovim-cca29112d52aaba97a93d8bad4c15c20b9998f53.tar.gz
rneovim-cca29112d52aaba97a93d8bad4c15c20b9998f53.tar.bz2
rneovim-cca29112d52aaba97a93d8bad4c15c20b9998f53.zip
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
-rw-r--r--src/nvim/testdir/test_cmdline.vim9
1 files changed, 9 insertions, 0 deletions
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 \<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