parent
232b6415d9
commit
5147d385a5
@ -138,9 +138,10 @@ function! s:update_hg_branch(path)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:update_branch()
|
function! s:update_branch()
|
||||||
let l:path = exists("*fnamemodify") ? fnamemodify(resolve(@%), ":p:h") : expand("%:p:h")
|
let b:airline_fname_path = get(b:, 'airline_fname_path',
|
||||||
|
\ exists("*fnamemodify") ? fnamemodify(resolve(@%), ":p:h") : expand("%:p:h"))
|
||||||
for vcs in keys(s:vcs_config)
|
for vcs in keys(s:vcs_config)
|
||||||
call {s:vcs_config[vcs].update_branch}(l:path)
|
call {s:vcs_config[vcs].update_branch}(b:airline_fname_path)
|
||||||
if b:buffer_vcs_config[vcs].branch != s:vcs_config[vcs].branch
|
if b:buffer_vcs_config[vcs].branch != s:vcs_config[vcs].branch
|
||||||
let b:buffer_vcs_config[vcs].branch = s:vcs_config[vcs].branch
|
let b:buffer_vcs_config[vcs].branch = s:vcs_config[vcs].branch
|
||||||
unlet! b:airline_head
|
unlet! b:airline_head
|
||||||
|
Loading…
Reference in New Issue
Block a user