mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-14 02:35:41 +08:00
fix(branch): fix on_exit_show_branch function
This commit is contained in:
parent
4ebcd961c7
commit
accc7b8dcd
@ -93,12 +93,14 @@ endfunction
|
|||||||
|
|
||||||
function! s:on_exit_show_branch(id, data, event) abort
|
function! s:on_exit_show_branch(id, data, event) abort
|
||||||
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
|
let pwd = get(s:job_pwds, 'jobid' . a:id, '')
|
||||||
if !has_key(s:branch_info, pwd)
|
if !has_key(s:branch_info, pwd) && !empty(pwd)
|
||||||
let s:branch_info[pwd] = {}
|
let s:branch_info[pwd] = {}
|
||||||
endif
|
endif
|
||||||
|
if !empty(pwd)
|
||||||
call extend(s:branch_info[pwd], {
|
call extend(s:branch_info[pwd], {
|
||||||
\ 'last_update_done' : localtime(),
|
\ 'last_update_done' : localtime(),
|
||||||
\ })
|
\ })
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! git#branch#current(...) abort
|
function! git#branch#current(...) abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user