diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-11-25 01:07:43 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-25 01:07:43 -0800 |
| commit | 967f229f32a3093613feaf99969e44333efd8a0a (patch) | |
| tree | a436baaac95f85a5b820df86169cb072bf3ef35b /src/nvim/testdir/test_ins_complete.vim | |
| parent | edb194f3306b6b8a9df7a06c15a60425911c7e85 (diff) | |
| parent | 0ee4df4d96751cb329b4f72df71ee4f6e831ff6d (diff) | |
| download | rneovim-967f229f32a3093613feaf99969e44333efd8a0a.tar.gz rneovim-967f229f32a3093613feaf99969e44333efd8a0a.tar.bz2 rneovim-967f229f32a3093613feaf99969e44333efd8a0a.zip | |
Merge #11454 from janlazo/vim-8.1.1732
vim-patch:8.1.{223,836,1732}
Diffstat (limited to 'src/nvim/testdir/test_ins_complete.vim')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index 7f52481ba8..52ec281d82 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -285,3 +285,21 @@ func Test_compl_feedkeys() bwipe! set completeopt& endfunc + +func Test_compl_in_cmdwin() + set wildmenu wildchar=<Tab> + com! -nargs=1 -complete=command GetInput let input = <q-args> + com! -buffer TestCommand echo 'TestCommand' + + let input = '' + call feedkeys("q:iGetInput T\<C-x>\<C-v>\<CR>", 'tx!') + call assert_equal('TestCommand', input) + + let input = '' + call feedkeys("q::GetInput T\<Tab>\<CR>:q\<CR>", 'tx!') + call assert_equal('T', input) + + delcom TestCommand + delcom GetInput + set wildmenu& wildchar& +endfunc |