fix: error caused by the invalid options in create_autocmd for vimdiff (#2013)

This commit is contained in:
Rocky Zhang
2022-06-18 04:55:27 -07:00
committed by GitHub
parent d96eaa914a
commit c0a76f8a39

View File

@@ -156,11 +156,10 @@ git.bcommits = function(opts)
vim.cmd "diffthis"
vim.api.nvim_create_autocmd("WinClosed", {
event = "WinClosed",
buffer = bufnr,
nested = true,
once = true,
function()
callback = function()
vim.api.nvim_buf_delete(bufnr, { force = true })
end,
})