mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 17:55:41 +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, ''))
|
||||
if !empty(b)
|
||||
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
|
||||
let s:branch_info[pwd] = {
|
||||
\ 'name' : b,
|
||||
\ }
|
||||
if !empty(pwd)
|
||||
let s:branch_info[pwd] = {
|
||||
\ 'name' : b,
|
||||
\ }
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user