diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-03 23:24:32 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-04 01:34:18 -0400 |
commit | 7876f4f2181d889d68b25cb66a0ff82b1f84d68c (patch) | |
tree | 8c8cc44311496c1a6a7cb645386d81236000aa1a /src/nvim/testdir | |
parent | 38806f23edfcba8cb7f7b80039d268ae3ffb0557 (diff) | |
download | rneovim-7876f4f2181d889d68b25cb66a0ff82b1f84d68c.tar.gz rneovim-7876f4f2181d889d68b25cb66a0ff82b1f84d68c.tar.bz2 rneovim-7876f4f2181d889d68b25cb66a0ff82b1f84d68c.zip |
vim-patch:8.0.1752: qf_set_properties() is to long
Problem: qf_set_properties() is to long.
Solution: Refactor the function. Define INVALID_QFIDX. (Yegappan
Lakshmanan, closes vim/vim#2812)
https://github.com/vim/vim/commit/a2aa8a2b22de909619d7faa3ff5383a6224defc5
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 90abb30da1..e805b5f663 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -1802,6 +1802,9 @@ func Xproperty_tests(cchar) call assert_equal(0, s) let d = g:Xgetlist({"title":1}) call assert_equal('Sample', d.title) + " Try setting title to a non-string value + call assert_equal(-1, g:Xsetlist([], 'a', {'title' : ['Test']})) + call assert_equal('Sample', g:Xgetlist({"title":1}).title) Xopen call assert_equal('Sample', w:quickfix_title) @@ -1950,6 +1953,9 @@ func Xproperty_tests(cchar) call g:Xsetlist([], 'a', {'items' : [{'filename':'F1', 'lnum':10}]}) call assert_equal(10, g:Xgetlist({'items':1}).items[0].lnum) + " Try setting the items using a string + call assert_equal(-1, g:Xsetlist([], ' ', {'items' : 'Test'})) + " Save and restore the quickfix stack call g:Xsetlist([], 'f') call assert_equal(0, g:Xgetlist({'nr':'$'}).nr) |