doesn't assume user has 'set autochdir' set
This commit is contained in:
parent
81430cbdf6
commit
9e8fe7a98e
@ -42,7 +42,7 @@ function! airline#extensions#branch#head()
|
||||
let b:airline_head = fugitive#head()
|
||||
|
||||
if empty(b:airline_head) && !exists('b:git_dir')
|
||||
let b:airline_head = s:get_git_branch(getcwd())
|
||||
let b:airline_head = s:get_git_branch(expand("%:p:h"))
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user