style(git): use vim.cmd.edit form in commit pcall

This commit is contained in:
2026-04-27 14:41:11 +02:00
parent c5b51f5ea5
commit 9530fe2aba
+1 -1
View File
@@ -34,7 +34,7 @@ function M.commit(opts)
f:write(initial)
f:close()
local ok, err = pcall(vim.cmd, "edit " .. vim.fn.fnameescape(msg_path))
local ok, err = pcall(vim.cmd.edit, vim.fn.fnameescape(msg_path))
if not ok then
log.error("failed to open %s: %s", msg_path, err or "")
return