diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-11 00:05:53 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-11 01:24:54 -0400 |
| commit | 4a54472098b3c321f5d51eba7e4e69e791517927 (patch) | |
| tree | c083b53a97b7536c4f36b761997d94dbac877491 /src/nvim/testdir/test_quickfix.vim | |
| parent | bdd0c31fb0078f92cc74e14ba94e77ae6be3cae1 (diff) | |
| download | rneovim-4a54472098b3c321f5d51eba7e4e69e791517927.tar.gz rneovim-4a54472098b3c321f5d51eba7e4e69e791517927.tar.bz2 rneovim-4a54472098b3c321f5d51eba7e4e69e791517927.zip | |
vim-patch:8.2.1101: no error when using wrong arguments for setqflist()
Problem: No error when using wrong arguments for setqflist() or
setloclist().
Solution: Check for the error.
https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index a8dd383e8c..f9e79919e9 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -2173,6 +2173,9 @@ func Xproperty_tests(cchar) call assert_equal(['Colors'], newl2.context) call assert_equal('Line10', newl2.items[0].text) call g:Xsetlist([], 'f') + + " Cannot specify both a non-empty list argument and a dict argument + call assert_fails("call g:Xsetlist([{}], ' ', {})", 'E475:') endfunc func Test_qf_property() |