diff options
| author | Blaž Hrastnik <blaz@mxxn.io> | 2020-04-29 00:27:14 +0900 |
|---|---|---|
| committer | Blaž Hrastnik <blaz@mxxn.io> | 2020-04-29 11:15:49 +0900 |
| commit | c477b19bdca0cc57e08f5fb93f647767ea84dd3e (patch) | |
| tree | 8a931968ac4d76fd8684e829a9030303f0fb3a36 /src/nvim/testdir | |
| parent | c7d3630e214012667e855c30cde2808a5fe59650 (diff) | |
| download | rneovim-c477b19bdca0cc57e08f5fb93f647767ea84dd3e.tar.gz rneovim-c477b19bdca0cc57e08f5fb93f647767ea84dd3e.tar.bz2 rneovim-c477b19bdca0cc57e08f5fb93f647767ea84dd3e.zip | |
vim-patch:8.2.0084: complete item "user_data" can only be a string
Problem: Complete item "user_data" can only be a string.
Solution: Accept any type of variable. (closes vim/vim#5412)
https://github.com/vim/vim/commit/0892832bb6c7e322fcae8560eaad5a8140ee4a06
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_ins_complete.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_ins_complete.vim b/src/nvim/testdir/test_ins_complete.vim index f4e6b698c6..1c275d5bd1 100644 --- a/src/nvim/testdir/test_ins_complete.vim +++ b/src/nvim/testdir/test_ins_complete.vim @@ -120,7 +120,7 @@ function! s:CompleteDone_CompleteFuncDict( findstart, base ) \ 'menu': 'extra text', \ 'info': 'words are cool', \ 'kind': 'W', - \ 'user_data': 'test' + \ 'user_data': ['one', 'two'] \ } \ ] \ } @@ -136,7 +136,7 @@ func s:CompleteDone_CheckCompletedItemDict(pre) call assert_equal( 'extra text', v:completed_item[ 'menu' ] ) call assert_equal( 'words are cool', v:completed_item[ 'info' ] ) call assert_equal( 'W', v:completed_item[ 'kind' ] ) - call assert_equal( 'test', v:completed_item[ 'user_data' ] ) + call assert_equal( ['one', 'two'], v:completed_item[ 'user_data' ] ) if a:pre call assert_equal('function', complete_info().mode) @@ -170,7 +170,7 @@ func Test_CompleteDoneDict() execute "normal a\<C-X>\<C-U>\<C-Y>" set completefunc& - call assert_equal('test', v:completed_item[ 'user_data' ]) + call assert_equal(['one', 'two'], v:completed_item[ 'user_data' ]) call assert_true(s:called_completedone) let s:called_completedone = 0 |