mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
fix(man): set the nested flag for the BufReadCmd autocommand (#26285)
The nested flag must be set so that other autocommands can fire while the BufReadCmd is still executing.
This commit is contained in:
parent
aa9d9cafd0
commit
a9b4dc9614
@ -29,6 +29,7 @@ local augroup = vim.api.nvim_create_augroup('man', {})
|
||||
vim.api.nvim_create_autocmd('BufReadCmd', {
|
||||
group = augroup,
|
||||
pattern = 'man://*',
|
||||
nested = true,
|
||||
callback = function(params)
|
||||
require('man').read_page(vim.fn.matchstr(params.match, 'man://\\zs.*'))
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user