mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +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', {
|
vim.api.nvim_create_autocmd('BufReadCmd', {
|
||||||
group = augroup,
|
group = augroup,
|
||||||
pattern = 'man://*',
|
pattern = 'man://*',
|
||||||
|
nested = true,
|
||||||
callback = function(params)
|
callback = function(params)
|
||||||
require('man').read_page(vim.fn.matchstr(params.match, 'man://\\zs.*'))
|
require('man').read_page(vim.fn.matchstr(params.match, 'man://\\zs.*'))
|
||||||
end,
|
end,
|
||||||
|
Reference in New Issue
Block a user