style(git): use vim.cmd.edit form in commit pcall
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ function M.commit(opts)
|
|||||||
f:write(initial)
|
f:write(initial)
|
||||||
f:close()
|
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
|
if not ok then
|
||||||
log.error("failed to open %s: %s", msg_path, err or "")
|
log.error("failed to open %s: %s", msg_path, err or "")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user