mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
38d98bba68
commit
06bbb79e63
@ -540,7 +540,7 @@ static int included_patches[] = {
|
||||
// 1156 NA
|
||||
// 1155 NA
|
||||
// 1154 NA
|
||||
// 1153,
|
||||
1153,
|
||||
// 1152 NA
|
||||
1151,
|
||||
1150,
|
||||
|
@ -3,6 +3,8 @@
|
||||
local helpers = require('test.functional.helpers')
|
||||
local source, clear = helpers.source, helpers.clear
|
||||
local eq, nvim, call = helpers.eq, helpers.meths, helpers.call
|
||||
local eval = helpers.eval
|
||||
local execute = helpers.execute
|
||||
|
||||
local function expected_empty()
|
||||
eq({}, nvim.get_vvar('errors'))
|
||||
@ -306,4 +308,11 @@ describe('helpgrep', function()
|
||||
call('XbufferTests', 'l')
|
||||
expected_empty()
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user