diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 19:53:54 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 20:53:39 +0800 |
| commit | ef363ed37cdf5c460cca840aebc825011e0294ee (patch) | |
| tree | 89c7ba09fdc61ce8a526a3da9feac1c7324e97b0 /src/nvim/testdir/test_usercommands.vim | |
| parent | cfccae95844db21aad773c9a8f8b636f53d6c8c4 (diff) | |
| download | rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.gz rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.bz2 rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.zip | |
vim-patch:8.2.0619: null dict is not handled like an empty dict
Problem: Null dict is not handled like an empty dict.
Solution: Fix the code and add tests. (Yegappan Lakshmanan, closes vim/vim#5968)
https://github.com/vim/vim/commit/ea04a6e8baff2f27da7cdd54bf70a5525994f76d
Nvim doesn't support modifying NULL list, so comment out a line.
Diffstat (limited to 'src/nvim/testdir/test_usercommands.vim')
| -rw-r--r-- | src/nvim/testdir/test_usercommands.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_usercommands.vim b/src/nvim/testdir/test_usercommands.vim index a3070d6517..5b8b384bae 100644 --- a/src/nvim/testdir/test_usercommands.vim +++ b/src/nvim/testdir/test_usercommands.vim @@ -623,17 +623,17 @@ func Test_usercmd_custom() return "a\nb\n" endfunc command -nargs=* -complete=customlist,T1 TCmd1 - call feedkeys(":T1 \<C-A>\<C-B>\"\<CR>", 'xt') - call assert_equal('"T1 ', @:) + call feedkeys(":TCmd1 \<C-A>\<C-B>\"\<CR>", 'xt') + call assert_equal('"TCmd1 ', @:) delcommand TCmd1 delfunc T1 func T2(a, c, p) - return ['a', 'b', 'c'] + return {} endfunc command -nargs=* -complete=customlist,T2 TCmd2 - call feedkeys(":T2 \<C-A>\<C-B>\"\<CR>", 'xt') - call assert_equal('"T2 ', @:) + call feedkeys(":TCmd2 \<C-A>\<C-B>\"\<CR>", 'xt') + call assert_equal('"TCmd2 ', @:) delcommand TCmd2 delfunc T2 endfunc |