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:
parent
00cab12850
commit
cf719fae36
@ -83,9 +83,11 @@ function! s:on_stdout_show_branch(id, data, event) abort
|
|||||||
let b = s:STR.trim(join(a:data, ''))
|
let b = s:STR.trim(join(a:data, ''))
|
||||||
if !empty(b)
|
if !empty(b)
|
||||||
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
|
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
|
||||||
let s:branch_info[pwd] = {
|
if !empty(pwd)
|
||||||
\ 'name' : b,
|
let s:branch_info[pwd] = {
|
||||||
\ }
|
\ 'name' : b,
|
||||||
|
\ }
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user