diff options
| author | Matthieu Coudron <mattator@gmail.com> | 2020-04-27 21:12:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 21:12:12 +0200 |
| commit | c7d3630e214012667e855c30cde2808a5fe59650 (patch) | |
| tree | cc2024053865052d34e7e8ebebbd45a4064d29ee /src/nvim/testdir | |
| parent | d90a92bcd3c18111abb62a57192c9e151839a7f4 (diff) | |
| parent | e34684b2ad02e759dec39c0f0958c7882120ecdc (diff) | |
| download | rneovim-c7d3630e214012667e855c30cde2808a5fe59650.tar.gz rneovim-c7d3630e214012667e855c30cde2808a5fe59650.tar.bz2 rneovim-c7d3630e214012667e855c30cde2808a5fe59650.zip | |
Merge pull request #11943 from yatli/master
[RDY] API/UI: Allow UI to set PUM position and size, and pass the position to CompleteChanged
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_popup.vim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim index e5696f4cbb..bb0ed6e00c 100644 --- a/src/nvim/testdir/test_popup.vim +++ b/src/nvim/testdir/test_popup.vim @@ -979,9 +979,9 @@ func Test_CompleteChanged() call cursor(4, 1) call feedkeys("Sf\<C-N>", 'tx') - call assert_equal({'completed_item': {}, 'width': 15, - \ 'height': 2, 'size': 2, - \ 'col': 0, 'row': 4, 'scrollbar': v:false}, g:event) + call assert_equal({'completed_item': {}, 'width': 15.0, + \ 'height': 2.0, 'size': 2, + \ 'col': 0.0, 'row': 4.0, 'scrollbar': v:false}, g:event) call feedkeys("a\<C-N>\<C-N>\<C-E>", 'tx') call assert_equal('foo', g:word) call feedkeys("a\<C-N>\<C-N>\<C-N>\<C-E>", 'tx') @@ -1009,10 +1009,10 @@ func Test_pum_getpos() setlocal completefunc=UserDefinedComplete let d = { - \ 'height': 5, - \ 'width': 15, - \ 'row': 1, - \ 'col': 0, + \ 'height': 5.0, + \ 'width': 15.0, + \ 'row': 1.0, + \ 'col': 0.0, \ 'size': 5, \ 'scrollbar': v:false, \ } |