fix(git): fire BufReadPost in target buffer's window context
This commit is contained in:
+3
-1
@@ -245,7 +245,9 @@ function M.read_uri(buf)
|
||||
|
||||
M.attach_dispatch(buf)
|
||||
|
||||
vim.api.nvim_exec_autocmds("BufReadPost", { buffer = buf })
|
||||
vim.api.nvim_buf_call(buf, function()
|
||||
vim.api.nvim_exec_autocmds("BufReadPost", { buffer = buf })
|
||||
end)
|
||||
end
|
||||
|
||||
---@param buf integer
|
||||
|
||||
Reference in New Issue
Block a user