aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorlonerover <pathfinder1644@yahoo.com>2017-03-14 22:07:48 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-03-14 15:07:48 +0100
commit227859ea79f981e67d5835cfed0be2123522ab2e (patch)
tree011c3a30e5682fcca49ee81f3d5f173f75c0d493 /src/nvim/testdir
parent36fd879b2553baee69555fb237864972325039f1 (diff)
downloadrneovim-227859ea79f981e67d5835cfed0be2123522ab2e.tar.gz
rneovim-227859ea79f981e67d5835cfed0be2123522ab2e.tar.bz2
rneovim-227859ea79f981e67d5835cfed0be2123522ab2e.zip
vim-patch:7.4.2264 (#6275)
Problem: When adding entries to an empty quickfix list the title is reset. Solution: Improve handling of the title. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/2b529bb6260b52246e92429375d995b9b5ce76b6
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_quickfix.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 044c288ce0..1f4a39b853 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -1508,6 +1508,16 @@ function Xproperty_tests(cchar)
call assert_equal('Sample', w:quickfix_title)
Xclose
+ " Tests for action argument
+ silent! Xolder 999
+ let qfnr = g:Xgetlist({'all':1}).nr
+ call g:Xsetlist([], 'r', {'title' : 'N1'})
+ call assert_equal('N1', g:Xgetlist({'all':1}).title)
+ call g:Xsetlist([], ' ', {'title' : 'N2'})
+ call assert_equal(qfnr + 1, g:Xgetlist({'all':1}).nr)
+ call g:Xsetlist([], ' ', {'title' : 'N3'})
+ call assert_equal('N2', g:Xgetlist({'nr':2, 'title':1}).title)
+
" Invalid arguments
call assert_fails('call g:Xgetlist([])', 'E715')
call assert_fails('call g:Xsetlist([], "a", [])', 'E715')