commit a9b4dc9614a0e49438a1a1569a5c0319aa2cac9d
parent aa9d9cafd0da58745178fa5a9b0773dcce96f30e
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date: Tue, 28 Nov 2023 17:02:44 -0600
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/runtime/plugin/man.lua b/runtime/plugin/man.lua
@@ -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,