diff --git a/lua/git/commit.lua b/lua/git/commit.lua index 3a51e7f..ebccde1 100644 --- a/lua/git/commit.lua +++ b/lua/git/commit.lua @@ -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