mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:40:04 +08:00
perf(git): notify commit done when use -m
This commit is contained in:
parent
54072389a9
commit
f80b8fd88e
@ -30,9 +30,13 @@ local function on_stderr(id, data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function on_exit(id, code, single)
|
local function on_exit(id, code, single)
|
||||||
|
-- log.debug(string.format('code %d, single %d', code, single))
|
||||||
if id ~= commit_jobid then
|
if id ~= commit_jobid then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if code == 0 and single == 0 then
|
||||||
|
nt.notify('commit done!')
|
||||||
|
end
|
||||||
if commit_bufnr ~= -1 and vim.api.nvim_buf_is_valid(commit_bufnr) then
|
if commit_bufnr ~= -1 and vim.api.nvim_buf_is_valid(commit_bufnr) then
|
||||||
vim.api.nvim_buf_set_lines(commit_bufnr, 0, -1, false, commit_context)
|
vim.api.nvim_buf_set_lines(commit_bufnr, 0, -1, false, commit_context)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user