vim-patch:7.4.1591

Problem:    The quickfix title is truncated.
Solution:   Save the command before it is truncated. (Anton Lindqvist)

5584df65a0
This commit is contained in:
James McCoy
2016-11-11 10:59:01 -05:00
parent 0213e99aaf
commit 7baa96b717
3 changed files with 26 additions and 2 deletions

View File

@@ -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()