aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/quickfix_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-11-11 16:01:13 -0500
committerGitHub <noreply@github.com>2016-11-11 16:01:13 -0500
commit05d12114241b62501bb8b39174d501a6e35c0a38 (patch)
tree474589f8e2803269c1a43b1e731adb6f9edcc17a /test/functional/legacy/quickfix_spec.lua
parent0213e99aaf6eba303fd459183dd14a4a11cc5b07 (diff)
parent7baa96b71753baa0b9c0f1c60c9a697c40bd58e7 (diff)
downloadrneovim-05d12114241b62501bb8b39174d501a6e35c0a38.tar.gz
rneovim-05d12114241b62501bb8b39174d501a6e35c0a38.tar.bz2
rneovim-05d12114241b62501bb8b39174d501a6e35c0a38.zip
Merge pull request #5592 from jamessan/vim-7.4.1591
vim-patch:7.4.1591
Diffstat (limited to 'test/functional/legacy/quickfix_spec.lua')
-rw-r--r--test/functional/legacy/quickfix_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/legacy/quickfix_spec.lua b/test/functional/legacy/quickfix_spec.lua
index 7657b8641b..8faaa7b535 100644
--- a/test/functional/legacy/quickfix_spec.lua
+++ b/test/functional/legacy/quickfix_spec.lua
@@ -389,6 +389,23 @@ describe('helpgrep', function()
augroup! testgroup
endfunction
+
+ func Test_vimgreptitle()
+ augroup QfBufWinEnter
+ au!
+ au BufWinEnter * :let g:a=get(w:, 'quickfix_title', 'NONE')
+ augroup END
+ try
+ vimgrep /pattern/j file
+ catch /E480/
+ endtry
+ copen
+ call assert_equal(': vimgrep /pattern/j file', g:a)
+ augroup QfBufWinEnter
+ au!
+ augroup END
+ augroup! QfBufWinEnter
+ endfunc
]])
end)
@@ -447,6 +464,11 @@ describe('helpgrep', function()
eq(':setqflist()', eval('g:foo'))
end)
+ it('does not truncate quickfix title', function()
+ call('Test_vimgreptitle')
+ expected_empty()
+ end)
+
it('errors when an autocommand closes the location list\'s window', function()
call('Test_locationlist_curwin_was_closed')
expected_empty()