mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-12 15:50:13 +08:00
doesn't assume user has 'set autochdir' set
This commit is contained in:
1 parent
81430cbdf6
commit
9e8fe7a98e
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user