1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

fix(git): fix branch info

This commit is contained in:
wsdjeg 2022-04-22 21:00:33 +08:00
parent 00cab12850
commit cf719fae36

View File

@ -83,10 +83,12 @@ function! s:on_stdout_show_branch(id, data, event) abort
let b = s:STR.trim(join(a:data, ''))
if !empty(b)
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
if !empty(pwd)
let s:branch_info[pwd] = {
\ 'name' : b,
\ }
endif
endif
endfunction
function! s:on_exit_show_branch(id, data, event) abort