mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00: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:
@ -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,
|
||||
|
Reference in New Issue
Block a user