fix(git): fire BufReadPost in target buffer's window context

This commit is contained in:
2026-05-06 05:24:17 +02:00
parent abc09d4ae3
commit cab906099b
+2
View File
@@ -245,7 +245,9 @@ function M.read_uri(buf)
M.attach_dispatch(buf) M.attach_dispatch(buf)
vim.api.nvim_buf_call(buf, function()
vim.api.nvim_exec_autocmds("BufReadPost", { buffer = buf }) vim.api.nvim_exec_autocmds("BufReadPost", { buffer = buf })
end)
end end
---@param buf integer ---@param buf integer