diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 580439ba..56fd32e6 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -341,7 +341,7 @@ function! airline#extensions#branch#get_head() endfunction function! s:check_in_path() - if !exists('b:airline_branch_path') + if !exists('b:airline_file_in_root') let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', '')) let bufferpath = resolve(fnamemodify(expand('%'), ':p'))