vim-patch:7.4.1153

Problem:    Autocommands triggered by quickfix cannot always get the current
            title value.
Solution:   Call qf_fill_buffer() later. (Christian Brabandt)

6920c72d4d

Helped by @mhinz
This commit is contained in:
Michael Ennen 2016-06-07 23:12:33 -07:00 committed by Marco Hinz
parent 38d98bba68
commit 06bbb79e63
2 changed files with 10 additions and 1 deletions

View File

@ -540,7 +540,7 @@ static int included_patches[] = {
// 1156 NA // 1156 NA
// 1155 NA // 1155 NA
// 1154 NA // 1154 NA
// 1153, 1153,
// 1152 NA // 1152 NA
1151, 1151,
1150, 1150,

View File

@ -3,6 +3,8 @@
local helpers = require('test.functional.helpers') local helpers = require('test.functional.helpers')
local source, clear = helpers.source, helpers.clear local source, clear = helpers.source, helpers.clear
local eq, nvim, call = helpers.eq, helpers.meths, helpers.call local eq, nvim, call = helpers.eq, helpers.meths, helpers.call
local eval = helpers.eval
local execute = helpers.execute
local function expected_empty() local function expected_empty()
eq({}, nvim.get_vvar('errors')) eq({}, nvim.get_vvar('errors'))
@ -306,4 +308,11 @@ describe('helpgrep', function()
call('XbufferTests', 'l') call('XbufferTests', 'l')
expected_empty() expected_empty()
end) end)
it('autocommands triggered by quickfix can get title', function()
execute('au FileType qf let g:foo = get(w:, "quickfix_title", "NONE")')
execute('call setqflist([])')
execute('copen')
eq(':setqflist()', eval('g:foo'))
end)
end) end)